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 'misc/demo/src/main/webapp/template/widgets/<widget-name>/model' folder. -
Moreover please add the <ui:group/> definition for Custom widgets in
misc/demo/src/main/webapp/META-INF/escenic/publication-resources/escenic/content-type
file. -
Run
mvn clean install
command inmisc/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.