WARNING: this component's development is in the beginnings. It is not usable yet for using in real projects.
Tools for creating Nette websites with client-editable content.
The best way to install Instante CMS is using Composer:
$ composer require instante/cms
-
Register EditorExtension in Nette config: extensions: icns: Instante\CMS\DI\EditorExtension
-
Register route for Editor Api in Nette router $router[] = Instante\CMS\DI\EditorExtension::createRoute();
-
Copy files from assets directory to your project and register instante/icmsEditor to requirejs
-
Setup instante/icmsEditor in presenter $this->jsModulesContainer->useModule('instante/icmsEditor', [ 'saveUrl' => $this->getHttpRequest()->url->getBaseUrl() . "icms-api/save", // url registered in Router and its save action 'autoInit' => TRUE, // or you can call instante/icmsEditor init() manually ]);
-
Link less files to page
-
Load font awesome
- Move pen.png to your www dir and check icms.less due to img path