Sidebars for child pages if statement - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Sidebars for child pages if statement (/showthread.php?tid=3262) |
Sidebars for child pages if statement - texaswalker - 2012-06-10 Lets say I have a parent page and multiple sub pages, how would I go about to display that same sidebar for each of the sub pages? Without having to manually write each line: <?php if (return_page_slug()=='page') get_i18n_component('mycomponent'); ?> Im sure that would take longer to load with multiple lines of code, how would I go about my situation. I apologize for my lack of php knowledge. I was thinking about putting the sub pages in a array after the parent, but i believe there is a much faster way of doing this. Which is why im here! UEFA 2012! Sidebars for child pages if statement - mvlcek - 2012-06-10 texaswalker Wrote:Lets say I have a parent page and multiple sub pages, how would I go about to display that same sidebar for each of the sub pages? Code: <?php if (return_parent()=='myparent') get_i18n_component('mycomponent'); ?> |