Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A design template descriptor for a JSPF that implements the design of a paragraph looks like this:

 

Code Block
themeEclipse
<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.

...

TagNoteDescription

<name>

Required

The unique internal name for the design template.

<display-name>

Required

The name shown in the drop-down list for the element.

<scope>

Several are possible

Specifies for which part in XperienCentral the descriptor is intended.

<ssi>
  <Design template><presentation>

Optional
Optional

Disk location of the handling JSPF for the server side include version.

<property>

Optional and several are possible

Definitions of the options to be configured in XperienCentral.

<channel>

Optional and several are possible

Definitions of the channels.

...

Code Block
themeEclipse
<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.

...

TagNoteDescription

name

Required

The frame identifier.

design templatepresentation

Required

The relative path to the JSP.

...

TagNoteDescription

name

Required

The stylesheet identifier.

design templatepresentation

Required

The relative path to the stylesheet.

pagedependentRequired

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 presentationcontextpresentationcontext, 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.

...