[pmwiki-devel] PmWiki router posted to cookbook

pmwikiusers.mmajor at dfgh.net pmwikiusers.mmajor at dfgh.net
Tue Nov 20 22:32:06 CST 2007


A router recipe has been posted to the cookbook at
http://www.pmwiki.org/wiki/Cookbook/Router

Router allows a website's url structure to be different from PmWiki's
group/page structure.


Development issue:

Router currently requires that it be executed before calling pmwiki.php.  If
it's permissible to change the value of $pagename from the config.php file,
I could make installation simpler and do everything from config.php.

I've tried it, and it appears to work, but I don't completely understand
what's going on in pmwiki.php(2.2.0beta63) lines 296-306, so I'm reluctant
to do it that way.  These lines appear to filter and assign a value to
$pagename just before the config files are included.

Any thoughts about the acceptibility of changing the value of $pagename in
config.php?




More information about the pmwiki-devel mailing list