The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



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