[dokuwiki] Re: Plugin to manipulate the main menu

  • From: Myron Turner <turnermm02@xxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 10 Mar 2009 17:02:54 -0500

Andreas Gohr wrote:
Just wondering if any of you know how to write a plugin to manipulate the
main menu? like hide/remove or add a new menu item?

What main menu?


If you are talking about the dokuwiki menu items, deleting a button is simple enough. For instance, if you wanted to elminate the history button from the top of the page, go to lib/tpl/default.main.php and look for this:

  <div class="bar" id="bar__top">
      <div class="bar-left" id="bar__topleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
      </div>

then just take out
  <?php tpl_button('history')?>

Adding a button is another matter. You'd have to know something about php and the dokuwiki code.
--

_____________________
Myron Turner
http://www.mturner.org
http://net18reaching.org/cityscapes
_________________________________________________________
Searchable Database of Art and New Media News Feeds
http://net18reaching.org/artrss



--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: