Differences

This shows you the differences between two versions of the page.

wiki:projects:php:dokuwiki:counter [2009/01/14 17:41]
89.214.226.126
wiki:projects:php:dokuwiki:counter [2009/02/03 00:29] (current)
85.179.156.67
Line 430: Line 430:
====== It keep ====== ====== It keep ======
I replace the code and it continues giving me the same problem. I replace the code and it continues giving me the same problem.
 +
 +
 +====== Getting the filename of a page ======
 +
 +Did it ever occur to you that you could simply take a look at how DokuWiki resolves the $ID to a filename internally?
 +
 +<code php>
 +/**
 + * returns the full path to the meta file specified by ID and extension
 + *
 + * The filename is URL encoded to protect Unicode chars
 + *
 + * @author Steven Danz <steven-danz@kc.rr.com>
 + */
 +function metaFN($id,$ext){
 +  global $conf;
 +  $id = cleanID($id);
 +  $id = str_replace(':','/',$id);
 +  $fn = $conf['metadir'].'/'.utf8_encodeFN($id).$ext;
 +  return $fn;
 +}
 +</code>
 +
 +So you basically have to copy this function and replace ''$conf['metadir']'' by ''%%realpath($conf['datadir']).'/_views'%%''. --- //[[mbirth@webwriters.de|Markus Birth]] 2009-02-03 00:34.38//
 
wiki/projects/php/dokuwiki/counter.txt · Last modified: 2009/02/03 00:29 by 85.179.156.67
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki