Home Page Metadata Section Configuration
The following properties must be defined to configure an editor metadata section:
- homePanels
-
An array of directive names of the home screen panel on which the metadata should be made available. The following directive names may be specified:
cf-escenic-search-sidepanel
Escenic home screen search panel
cf-latest-opened-leftpanel
Escenic home screen latest-opened panel
cf-sections-sidepanel
Escenic home screen sections panel
cf-lists-sidepanel
Escenic home screen lists panel
Remember also that the
homePanels
property name must be preceded by a hyphen (-
). directive
-
The tag name of the web component. The name you specify must contain a hyphen.
name
-
The display name of the component. The name is only actually displayed when the mouse is held over the metadata section button.
webComponent
-
Information about the web component:
modulePath
-
The URL of the web component
icon
-
The tag name of the web component's icon. The name you specify must contain a hyphen.
order
-
Determines the position of this section in the attributes panel (and the position of the button). The sections are arranged in numerical order from lowest to highest.
All the properties must be entered as a list item belonging to a
homeScreenMetadata
property. They must be
indented correctly and the homePanels
property
must be preceded by a hyphen (-
) to indicate the
start of a new list item. The following example shows the required
format:
homeScreenMetadata: - homePanels: ["cf-escenic-search-sidepanel", "cf-latest-opened-leftpanel"] directive: "content-preview" name: "Preview" webComponent: modulePath: "http://www.example.com/webcomponents/preview/preview.js" icon: "content-preview-icon" order: 804