sean finney wrote:
> if you enable cgiurl in your setup config, the edit/history/discussion
> links appear in all the rendered pages.  while this could be avoided by
> overriding templates, it seems pretty reasonable to me that there should
> be a way to enable the search feature (which requires cgiurl be set),
> without enabling the rest of this stuff.
> 
> the relevant code (IkiWiki/Render.pm, though there may be others)
> 
>         my $actions=0;
> 
>         if (length $config{cgiurl}) {
>                 $template->param(editurl => cgiurl(do => "edit", page => 
> $page))
> ;
>                 $template->param(prefsurl => cgiurl(do => "prefs"));
>                 $actions++;
>         }
> <snip>
>         if ($actions) {
>                 $template->param(have_actions => 1);
>         }
> 
> and then the installed templates use HAVE_ACTIONS to determine
> whether or not the wiki links should be available.

The thing to do would probably be to break page editing out to a
plugin..

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to