DWiki encourages you to use directories to group DWiki pages together
and to organize your DWiki's hierarchy of information. (Besides, since
you're editing pages in Unix they're convenient for keeping the output
ls commands to a reasonable size.)
Unlike normal pages, directories clearly don't have ordinary text of their own to display. Instead, DWiki offers several 'views' of a directory's contents:
You can switch to different views of a directory by using the appropriate links in the Page Tools menu at the bottom of a directory's page.
Directories normally default to being viewed in the normal view
(that's why it's called that). However, if a file called
.flag.prefview:<view> exists in a directory, that view becomes
the default view instead.
If you make two or more files like that for different views, what happens is undefined. (Okay, DWiki picks one using arcane internal rules.)
If you create a file called
__readme in a directory, it will be
shown at the start of the text in the 'blog' and 'blogdir' views.
You can set up default access permissions and commentability for
everything under a directory by creating a file called
the directory and putting in appropriate
When it checks permissions, DWiki starts at the page and walks backwards up the directory hierarchy until it has to give up; the first __access file that has something to say about the thing in question (page access or commentability) is the one that wins.
This means that __access files lower in the directory hierarchy can give back access to things that a higher level took away. This is deliberate, but please be aware of it.