Adding Custom Widgets

To add some custom widgets to the demo web application:

  1. Go to misc/demo folder.

  2. Place your widget code in misc/demo/src/main/webapp/template/widgets folder.

  3. For each widget, the content type definition should be placed in a separate content-type file in the misc/demo/src/main/webapp/template/widgets/widget-name/model folder.

  4. Add a <ui:group/> definition for custom widgets to misc/demo/src/main/webapp/META-INF/escenic/publication-resources/escenic/content-type file.

  5. Run mvn clean install command in the misc/demo folder.

The demo webapp will be created under the misc/demo/target folder. It will contain the custom widget templates and the content-type resource will also contain the custom widget definition.