[pmwiki-users] how to define own sidebar for edit-modus ?

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 4 12:37:40 CST 2005


On Fri, Feb 04, 2005 at 01:04:27PM +0100, Knut Alboldt wrote:
> Hans schrieb:
> >replace in your skin tmpl file
> ><!--wiki:$Group.SideBar Main.SideBar-->
> >with <!--wiki:$Group.$SideBar Main.$SideBar-->
> >
> >add to config.php:
> >$SideBar = 'SideBar';
> >if ($action=='edit') $SideBar = 'EditBar';

Wow, this is an excellent solution -- nice thinking.  Here's another
that doesn't involve code in config.php...  use this in your 
skin tmpl file:

<!--wiki:$Group.SideBar-$action Main.SideBar-$action $Group.SideBar Main.SideBar-->

For ?action=edit, this uses the first of

   Group.SideBar-edit
   Main.SideBar-edit
   Group.SideBar
   Main.SideBar

Just create which ever page is most appropriate.  And don't forget that
Group.SideBar-edit can (:include {$Group}.SideBar:) if desired.  :-)

Pm



More information about the pmwiki-users mailing list