[pmwiki-users] how to define own sidebar for edit-modus ?
Knut Alboldt
pmwiki at alboldt.de
Fri Feb 4 16:31:59 CST 2005
Patrick R. Michaud schrieb:
> 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
amazing !
Thanks
Knut
More information about the pmwiki-users
mailing list