Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.57 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.57 KB

Instante CMS

Build Status Downloads this Month Latest stable

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.

Installation

The best way to install Instante CMS is using Composer:

$ composer require instante/cms
  1. Register EditorExtension in Nette config: extensions: icns: Instante\CMS\DI\EditorExtension

  2. Register route for Editor Api in Nette router $router[] = Instante\CMS\DI\EditorExtension::createRoute();

  3. Copy files from assets directory to your project and register instante/icmsEditor to requirejs

  4. 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 ]);

  5. Link less files to page

  6. Load font awesome

  1. Move pen.png to your www dir and check icms.less due to img path