Content Type

A widget has a standard Escenic content type definition, defined in the usual way in a content-type resource file. Widgets have content type definitions so that they can be "understood" by Content Studio. This allows Content Studio to be used to:

  • Configure widgets

  • Define page layouts by adding widgets to templates.

A widget content type definition:

  • Is stored in the widget's src/main/webapp/META-INF/escenic/publication-resources/escenic/content-type file

  • Is a standard Escenic content-type resource file

  • Contains one content-type element defining the widget, plus the field, field-group and other elements it references

A widget content type should usually contain:

  • A General panel containing fields for common options.

  • A Default panel containing options for the widget's default view.

  • An Advanced panel containing fields for advanced options

For more information about content-type resource files, see: