The template-definition
object defines templates for objects in the framework. Templates are JSP pages that define the page structure for a framework object. Any framework object has the ability to define its own layout templates mapped by key. The following is an example of how to import a skin layout template:
<dspel:include page="${mySkin.templates.layoutTemplate.url}"/>
The attributes of the template-definition
object, in addition to the attributes inherited from the FrameworkObject
base class, are:
Attribute | Description |
---|---|
| The Web context for rendering content from other Web applications. |
| Logical identifier that other objects use to refer to this object, which is exposed to other objects and to the code. It is the primary external way to refer to the object. |
| A URL that references the JSP template. |
The extension method of the TemplateDefinitionHome
interface is:
Returns | Method | Description |
---|---|---|
|
| Returns the Arguments: String |
The following is a template-definition
:
<template-definition> <id>SimpleLinksEveryonePanelTemplate</id> <app-id>workspace</app-id> <enabled-yn>true</enabled-yn> <object-type>TemplateDefinition</object-type> <template-id>simpleLinksPanel</template-id> <url>/skins/templates/simpleLinksPanelTemplate.jsp</url> </template-definition>