Table of contents ▼▲
PageGrouping
I have been giving the link syntax a lot of thought and have come up with a syntax that allows a very flexible grouping mechanism without the limitaions of just group / subgroup / page of the current version. I have borrowed the idea from DokuWiki (they call it NameSpaces), but have extended it to allow 'relative' page linking/creation..When creating pages, if no grouping information is passed, then the default group is assumed.
There are advantages to this both in logical and physical storage. You are more able to split documents into logical groups which makes for a more structured site. Each 'group' is created on the file system as a directory. This not only limits the amount of files per folder, but also stores the documents in the same logical order as the site.
The problem I had when designing version 1 was how to create pages relative to where you currently are. I have now got round this using the method below. The syntax is still up for grabs but seems to work for now.
The basic rules are:
- at start. Start a new top level group.
- . at start. Use current group (optional)
- < at start. Go up a level in the grouping. The more <<< the higher up the group 'tree'.
Assuming that the default group is '''g1'''..
-
[[page1]]- g1/page1 (use current group)[[.page1]]- g1/page1 (use current group)[[sg1:page1]]- g1/sg1/page1 (create/use new subgroup)[[sg2:page1]]- g1/sg1/sg2/page1 (create/use new subgroup)[[<page2]]- g1/sg1/page2 (go back a group)[[sg2:page1]]- g1/sg1/sg2/page1 (create/use new subgroup)[[<<page1]]- g1/page1 (go back to groups)[[:g2:sg2:page1]]- g2/sg2/page1 ( : resets the top level group)
Further options can still be passed to the link as before by seperating with a space. Anything not known will be treated as the alternate text.
-
[[<pageinfo> target="_blank" <alttext>]]
What are your thoughts on this...
I think it would be really nice to have more than three levels - that would make this great wiki more flexible :-) So please - go ahead on this idea - Uffe