raulih My PHP scripting skills are not that good to go through all the source code, so could some one help me with these: i) I'd need a simple solution to identify current namespace - actually the first namespace under base directory. And the main pages of every namespace are not within their own namespace, but instead have same name with the namespace. They should be included too. I only want to change the colour of the main navigation link for the namespace you're currently under. ii) How to identify one page? I need to write exceptions to a few pages.
chi Take a look at inc/pageutils.php. getNS(), curNS() and wikiFN() combined with file_exists() are your friends ;-).
chi See http://dev.splitbrain.org/reference/dokuwiki. It`s the source code reference of DokuWiki. Just browse to the aforementioned functions. If you "mouseover" them you`ll get a list of places they`re used (plenty of examples!).