GetSimple Support Forum
output parent's name but not "index" - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: output parent's name but not "index" (/showthread.php?tid=2389)



output parent's name but not "index" - Connie - 2011-11-20

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 ;=(


output parent's name but not "index" - yojoe - 2011-11-21

try with:
Code:
<?php if (get_parent(FALSE) == "index") {
  get_site_name();
}
?>



output parent's name but not "index" - Connie - 2011-11-21

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