[dokuwiki] Re: Hide "show pagesource" button

  • From: "Esther Brunner" <wikidesign@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 23 Mar 2006 16:10:57 +0100

Hi Attila

> I would like to hide the "show pagesource" button if the user is not loged on 
> or
> the user has only reader access to a page. How can I do this?

<?php if ($_SERVER['REMOTE_USER'] && $INFO['editable']){?>
tpl_button('edit') <?php }?>

see: http://wiki.splitbrain.org/wiki:tpl:info

-- Esther Brunner

Other related posts: