[pmwiki-users] Hiding the SideBar in templates
Hans
design at flutesong.fsnet.co.uk
Tue Jun 28 04:32:04 CDT 2005
Tuesday, June 28, 2005, 9:58:13 AM, Martin wrote:
> Here is, what I would like to have:
> --- skin-template.tmpl snip ---------------
> <!--HasSideBar-->
> <div class="sidebar">
> <!--wiki:$Group/SideBar-->
> </div>
> <!--/HasSideBar-->
> --- skin-template.tmpl snap ---------------
> where <!--HasSideBar--> is a conditional triggering whether
> $Group/SideBar exists or not.
just change in the skin template
<!--wiki:$Group.SideBar Main.SideBar-->
to
<!--wiki:$Group.SideBar-->
which stops a Main.SideBar loading by default, so you only have a
group Sidebar, if it exists. Main.SideBar will only load in th eMain
group then.
with some skins you can also hide the sidebar with markup (:noleft:)
on any page.
Best,
~Hans
More information about the pmwiki-users
mailing list