Q: Can I use symbolic links in Dokuwiki's page files? I'm planning to try using dokuwiki to manage my large collection of notes, and one of the major attractions is its flat file basis that'll allow me to edit via scripts etc. I had a question - suppose a page's material fits into multiple namespaces. If I were to create the file in one namespace and then create symlinks in the other namespace directories, would that work? Or would that screw up revisions etc?

A: Yes, you can do that. But yes, this will mess with your revisions a bit:


*

*when DokuWiki saves a page, it copies the data of the old page to the attic

*the name of the attic file is the same as the page that was edited, but with a timestamp appended

*because new attic files are created you can't work with symlinks in the attic


Imagine you have the following setup:
data/pages/original.txt
data/pages/copy.txt -> original.txt

You now can edit the pages original and copy in your wiki and they will both always be the same. However old revisions of the pages will be split between the two, depending on which page you edited.

A: Instead of messing with file level consider


*

*Include plugin to share content between pages.

*Creation of some 'commons' namespace for such pages to be DRY.

*Namespace templates (+ additional plugin).

*Pulling content from page side instead of pushing it to pages. This might be good to start with. You can always include some php code or even write your own plugin.

