[dokuwiki] Re: [patch] Find files in the namespace

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 11 Sep 2010 09:03:53 +0200

> Sometimes in templates - you want to adjust the layout based on files in the
> namespace.
>
> For example - have sidebars per namespace, and only show a sidebar if there is
> one. For that, I needed to add something like this into ./inc/template.php

Yes many templates use similar functions and include them in their own
template code. I'm not sure why this function should be added to the
core.

Also for your usecase, the resolved ID should be in $ID or $INFO['id']
already, no need to resolve again (but I might have misunderstood you
there)

Andi

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

Other related posts: