[dokuwiki] Re: wikiFN question

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 09 Aug 2006 14:34:37 +0200

Oliver Geisen writes:

(yes, i've googled and searched in bugbase too)

:-)

the call: wikiFN("ns1:ns2:")
returns: "/var/...../ns1/ns2.txt"

Is this correct ? Should'nt it be "/var/....../ns1/ns2/" if last part is not specified ?

It's a limitation of the function. It's relatively dumb and doesn't resolve ids. It only works with pages. If you need a directory of a namespace do it like that:


dirname(wikiFN("ns1:ns2:FOO"));

Andi


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

Other related posts: