[pmwiki-users] Hiding the SideBar in templates

Martin Spindler martin at mdlink.de
Tue Jun 28 06:28:47 CDT 2005


Hans wrote:

>Put this in the template:
>
><!--PageLeftFmt-->
>      <div class="sidebar">
>        <!--wiki:$Group.SideBar-->
>      </div>
><!--/PageLeftFmt-->
>
>and put this in config.php:
>
>$sbr = FmtPageName('$Group.SideBar',$pagename);
>if (!PageExists($sbr)) SetTmplDisplay('PageLeftFmt', 0);
>  
>
Thanks a lot. That works perfectly.

Cheers,
Martin.




More information about the pmwiki-users mailing list