[pmwiki-users] how to hide sidebar when login form is displayed?

Hans design5 at softflow.co.uk
Sat Mar 31 12:27:24 CDT 2007


Saturday, March 31, 2007, 6:06:17 PM, Tegan wrote:

> If you put (:if ! auth edit:)(:noleft:)(:ifend:) in your site-wide
> header (dunno what it's named in your skin), that will suppress the
> left SideBar until the user has edit privileges.  Making it
> conditional on some other authorization should work in a similar way.

> Whatever conditional you settle on, the trick is in where to put it.
> On the Site/AuthForm doesn't do.  On the site's left SideBar itself
> might actually work, and in some part of the side-wide header does.

I think a site-wide AllGroupHeader which can hold markup for all pages
in the site works well. (:noleft:) in the SideBar does not. It has to
be part of the main page (as GroupHeaders and AllGroupHeader are),
since it affects styles defined in the HTML head, which you can't do
from a sidebar.

http://www.pmwiki.org/wiki/Cookbook/AllGroupHeader


  ~Hans




More information about the pmwiki-users mailing list