GetSimple Support Forum

Full Version: output parent's name but not "index"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what would be the correct condition to echo the sitename when parent = "index"

get_parent(); echoes "index" in subpages of homepage

but in that case I do want the sitename ;=(
try with:
Code:
<?php if (get_parent(FALSE) == "index") {
  get_site_name();
}
?>
yojoe Wrote:try with:
Code:
<?php if (get_parent(FALSE) == "index") {
  get_site_name();
}
?>

thanks, I will try that, I think I did not test with parameter "false"

cheers, Connie