[dokuwiki] Re: How to edit a sidebar?

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 1 Oct 2014 17:54:08 +0100

On 1 Oct 2014, at 11:35, cl@xxxxxxxx wrote:

> 
> Is there any easy way to edit the sidebar now without having an
> explicit link to it from somewhere?
> 

Put a link to edit the sidebar in the sidebar.

If you don't want that to show up for users, 
(1) wrap the link in some conditional so it only shows up to appropriate 
people.  This should be possible with ifauth or include plugins, possibly 
others.
(2) put the edit link in the template and only show it to managers, admins (or 
people with write access to sidebar).  The code required for that should be 
pretty easy to work out.

Fwiw, the question what sidebar to edit isn't as simple as it sounds - except 
in a flat wiki, or when a sidebar already exists for the current namespace.  
Otherwise you need to determine if you wish to edit the currently visible 
sidebar or create a new sidebar in one of the namespaces between the current 
namespace and that of the visible sidebar.

- Chris



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Other related posts: