how to disable sidebar content-side - 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: how to disable sidebar content-side (/showthread.php?tid=3703) |
how to disable sidebar content-side - Belletage - 2012-10-21 Hi, in my template, I get side-specific sidebar-content with this code: Code: if (isset($_GET['id']) && $_GET['id'] == 'slug') { getPageContent('sidebar-slug'); } On which point and for which variable I have to ask here, to locate this "private" mode? best, Bell. how to disable sidebar content-side - shawn_a - 2012-10-21 maybe with this assuming field is "private" maybe ? /** * Get Page Field * * Retrieve and display the requested field from the given page. * * @since 3.1 * @param $page - slug of the page to retrieve content * @param $field - the Field to display * */ function getPageField($page,$field){ how to disable sidebar content-side - Belletage - 2012-10-22 hi shawn, yes, thank you, thereabout. (there I got an 'Y'-Problem with a resistant Y, because of the "echo" ...) so I add my sidebar-section in the template.php with Code: if (isset($_GET['id']) && $_GET['id'] == 'slug' && returnPageField('sidebar-slug','private') == FALSE) { getPageContent('sidebar-slug'); } On my view, its easier for users, to feed the sidebar by the page-menu, than by the component. great, best, Bell. how to disable sidebar content-side - shawn_a - 2012-10-23 oh sorry, I always forget our functions are terribly named. I always mix them up. A getter should never echo, but I digress. |