Is there any way for phpwiki to parse pages with an underscore (example: index.php/George_Washington) as "George Washington" and not "George_Washington" a la MediaWiki?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any way for phpwiki to parse pages with an underscore (example: index.php/George_Washington) as "George Washington" and not "George_Washington" a la MediaWiki?
We can do that, but don't want to do that.
We parse and represent every pagename asis, without any hidden magic a la mediawiki.
space is space and underscore is underscore.
To apply special mediawiki pagename rules please apply these before importing the pages into phpwiki.
Doing this within phpwiki at runtime would imply conflicts in multiple representations, and would forbid common characters withon pagenames.
Our legal pagenames are specified in stdlib.php, class WikiPageName ->isValid and ->_check:
A starting SUBPAGE_SEPERATOR is forbidden.
Multiple whitepsace is compressed to single whitespace,
leading and trailing whitespace is stripped,
Unfortunately certain DB backends enforce more restrictions, as cvs and file, where they must be legal filenames.
There's an easy way we dont want to go.
We want you to fix the wrong pagenames before importing them, so that you have a 1:1 mapping of pagenames in url <=> database.