Revision [20621]
This is an old revision of NewFileStructure made by DarTar on 2009-05-16 05:02:46.
New file structure
See also
- Extensible architecture for Wikka components - #446
The new file structure should follow these general principles:
- Complete separation of core code from plugins
- Folder structure to allow single plugins to be completely self-contained
- Override mechanism to allow custom hacks (components in the plugins tree override the corresponding default ones)
- l10n ready components
- Custom theme support
Initial proposal
3rdparty/ <----------core 3rd party components actions/ <----------default actions .......myaction/ <----------example of default action folder ..............css/ <----------action stylesheets ..............inc/ <----------action dependencies ..............js/ <----------action JS ..............myaction.php <---------- action code docs/ <----------documentation formatters/ <----------default formatters handlers/ <----------default handlers lang/ <----------language files libs/ <----------core libraries plugins/ <----------plugin tree (will NOT be overwritten during an upgrade) .......actions/ <----------plugin actions ..............myaction/ <----------customized myaction (overrides the default one) .....................css/ .....................inc/ .....................js/ .....................myaction.php ..............newaction/ <----------plugin action (not bundled with core engine) .....................css/ .....................inc/ .....................js/ .....................newaction.php .......formatters/ <----------plugin formatters .......handlers/ <----------plugin handlers .......templates/ <----------plugin themes .....................fancy/ ............................css/ ............................js/ ............................footer.inc.php ............................header.inc.php .....................steampunk/ ............................css/ ............................js/ ............................footer.inc.php ............................header.inc.php setup/ <----------installation files .......sql/ <----------default tables templates/ <----------core themes (bundled with the engine) .......default/ <----------main default theme ..............css/ <----------default stylesheets are moved inside the main default theme folder .....................wikka.css ..............js/ ..............footer.inc.php ..............header.inc.php .......modern/ <----------Wikka may bundle a few extra themes that will be updated on every ugrade ..............css/ .....................wikka.css ..............js/ ..............footer.inc.php ..............header.inc.php