Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [03-2007 Date Index] [Date Next] || [Thread Prev] [03-2007 Thread Index] [Thread Next]

[dokuwiki] How to "override" legacy dokuwiki functions ?

  • From: Oliver Geisen <oliver.geisen@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 1 Mar 2007 11:37:55 +0100
Hello,

i have specific question, but it's maybe more generic:

I want to use hierachical navigation, like provided by "tpl_youarehere ()", but in a little modified behaveour:

what it does now:
  - shows pagename or H1-title* of start-page as first element
- shows pagename or H1-title* of page "index" in each parent namespace
  - shows pagename or H1-title* of current page as last element
* H1-line of pages are only used when global configuration setting "useheading" is enabled.

what "I" want it to do:
- show "Start" as first element, regardless of its pagename or H1- title - show pagename or H1-title* of page "index" in of each parent namespace * H1-line should always be used if it's defined, regardless of global "useheading" setting.

----------

Now, to do this i think i have to hack the inc/template.php- >tpl_youarehere() function.
I know this is bad, but what i my alternatives ?
I could include it into an own template and use "mytpl_youarehere()" instead of "tpl_youarehere()" in it's main.php. But there maybe some things which can not easily be handled by templates, like authentication. As far as i know "action plugins" are just like hooks, they're executed before or after a specific event, line of code. So they can't fully replace an internal function, only extend it, right.


Any hints ?

Oliver Geisen


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




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.