GetSimple Support Forum
Identify index page - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11)
+--- Thread: Identify index page (/showthread.php?tid=2560)



Identify index page - echteinfachtv - 2012-01-02

Very easy, for beginners like me:

To identify the start page, use this php code in your template:

Code:
if(return_page_slug() == "index" ) {
  // do something or not
}


PS: I came across this easy solution by checking the default theme "Innovation" where the breadcrumbs are hidden by CSS from the index page (see also header.inc.php there). I thought it is better not to show them at all...


Identify index page - polyfragmented - 2012-01-06

Thanks for the tip!