Table of contents ▼▲
Customizing the wiki to your own taste
One of the goals of writing this wiki engine was to provide a framework and core routines that could easily be added too.expand on what can be done
Some of the things that can be extended or changed
- Text formatting
- layout - Change the look and feel by adding own templates and css files
- actions - add your own or write replacement routines for example. The way the classes are written, they will always look for external functions before looking for the same function in the class.
- etc..
All customisation should be done outside of the core scripts directory (code/core). This will protect any changes you make when new releases are issued.
My advice is to use the code/plugin directory to store any code you write, ie functions, etc... Simplay activate using the API::PlugIn() commnd.
Pretty much everything in code/core/variables.php can be overridden in a custom.php file.
A custom.php file is supplied with the wiki in the data/ directory. This is the 'global' custom file and affects all the wiki pages.
Setting global changes is all well and good, but it would be nice to be able to apply custom layouts, etc at group or even subgroup level. This can be acheived by creating more custom.php files within the data directory structure. Contents of each custom.php are applied all the way down the tree.
For example, by creating
data/books/custom.php, you limit the changes only to the 'books' group. data/books/fiction/custom.php only affects the fiction subgroup.