Hi,partially based on WolfgangIrler's DirFileSystemProvider idea, I have created a patch (HierarchicalPageNames) so we have hierarchical page names like \Admin\Home,\Admin\NewHire, \Tech\Home etc. Just like file folders. Within \Admin\Home you can create a link to \Admin\NewHire with a relative link [NewHire]. A new provider RCSDirFileProvider must be used. It's backwards compative in the sense that links in the old flat named pages still work (even if old page "About" is named "\About" in the new naming scheme). However, the left menu must have all link names preprended with "\" so they are still correct when viewed in non-top level pages like "\Admin\Home". To convert an old wiki to this provider, you must check all the pages into RCS first.

I have attached a gzipped tar of my sample wiki contents using this provider.

Everything including searching seems to work fine. Here is the code:

New file:

 
src/com/ecyrd/jspwiki/providers/RCSDirFileProvider.java
It is uploaded as an attachment.

Modified files:

M src/com/ecyrd/jspwiki/TranslatorReader.java
M src/com/ecyrd/jspwiki/WikiEngine.java
M src/com/ecyrd/jspwiki/WikiPage.java
M src/webdocs/Wiki.jsp
The diffs for these files are included in HierarchicalNameDiffs.

Category Patches, Category Development

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
java
RCSDirFileProvider.java 25.4 kB 1 09-Feb-2003 10:20 64.32.198.207
tgz
RCSDirFileProviderWikiTxt.tgz 37.3 kB 1 09-Feb-2003 10:54 ZhenleiCai
« This page (revision-6) was last changed on 05-Dec-2004 15:37 by Jawe