Adding Custom Widgets
To add some custom widgets to the demo
web
application:
-
Go to
misc/demo
folder. -
Place your widget code in
misc/demo/src/main/webapp/template/widgets
folder. -
For each widget, the content type definition should be placed in a separate
content-type
file in themisc/demo/src/main/webapp/template/widgets/
widget-name/model
folder. -
Add a
<ui:group/>
definition for custom widgets tomisc/demo/src/main/webapp/META-INF/escenic/publication-resources/escenic/content-type
file. -
Run
mvn clean install
command in themisc/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.