A simple plugin for cakephp that allows creating hierarchical wiki pages.
- cake-attachments for managing attachments to wiki pages
- cake-FrontendBridge for easy integration of further needed js libraries
- cake-model-history for historizable wiki pages
- cake-cktools for view elements such as the linked, hierarchical structure of the wiki
- bootstrap for icons in the page edit menu
####1. require the plugin via composer
$ composer require scherersoftware/cake-wiki
2. Include the plugin using composer
Open a terminal in your project-folder and run these commands:
$ composer update $ composer install
3. Load the plugin in your
Plugin::load('Scherersoftware/Wiki', ['bootstrap' => true, 'routes' => true]);
4. Create Table 'wiki-pages' in your Database
This plugin requires an additional table in your project database. Run the following SQL query to create the table.
CREATE TABLE `wiki_pages` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) unsigned DEFAULT NULL, `lft` int(10) DEFAULT NULL, `rght` int(10) DEFAULT NULL, `sort` int(3) unsigned DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `content` mediumtext, `status` varchar(255) NOT NULL DEFAULT 'active', `created` datetime DEFAULT NULL, `modified` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
Or run the migration like:
bin/cake migrations migrate -p Scherersoftware/Wiki
'config/wiki_pages.sql' for further information.
5. Load additional JS files with FrontendBridge
There are other ways to include all the js files needed but we strongly recommend to use our FrontendBridge plugin because if you use it, all you need to do then is add the following line to in your
Configure your access rights according to your needs and have your users create hierarchical wiki pages!