...
A design template descriptor for a JSPF that implements the design of a paragraph looks like this:
Code Block | ||
---|---|---|
| ||
<design template><presentation> <name>helloworld design template textelement</name> <display-name>HWP textelement</display-name> <scope>TextElement</scope> </design template>presentation> |
The XML file has the same name as the JSP but with the extension .xml
. XperienCentral uses the scope (in the example above TextElement
) to categorize all the design templates. The scope names determine for which part in XperienCentral the design template is intended. All (known) scope names can be viewed in the scope design template pull-down list on the [Design templates]
tab from the Configuration > Design Template panel.
...
Tag | Note | Description |
---|---|---|
| Required | The unique internal name for the design template. |
| Required | The name shown in the drop-down list for the element. |
| Several are possible | Specifies for which part in XperienCentral the descriptor is intended. |
| Optional | Disk location of the handling JSPF for the server side include version. |
| Optional and several are possible | Definitions of the options to be configured in XperienCentral. |
| Optional and several are possible | Definitions of the channels. |
...
Code Block | ||
---|---|---|
| ||
<wm:design templatePropertypresentationProperty var="showLead" label="showLead" /> <c:if test="${showLead}"> <p>${mediaItemVersion.lead}</p> </c:if> |
...
The Community Edition "Content" pagepart
design template contains two design template properties (fromSeparator
and toSeparator
) that specify the range of the elements to be printed. These properties are related to the separators. It is not necessary to retrieve the values of these properties using the <wm:Design templatePropertypresentationProperty-tag
, when you retrieve the elements - the method will automatically use these values.
...
Tag | Note | Description |
---|---|---|
| Required | The frame identifier. |
| Required | The relative path to the JSP. |
...
Tag | Note | Description |
---|---|---|
| Required | The stylesheet identifier. |
| Required | The relative path to the stylesheet. |
pagedependent | Required | A boolean that determines whether the content of the stylesheet is determined by limitations set in the XperienCentral style and that are valid for that page. |
...
This does not mean that the stylesheet is automatically included in the source. This is accomplished by requesting the current page from the design presentationcontext
presentationcontext
, and then requesting all the connected stylesheets from that page. This generates an array of stylesheet objects that each generate the URL using the getUrl()
method.
...