Like images, templates are represented by catalog items of type Media. You can either create an item of type Media -Internal Text by storing the actual template text in the database, or create an item of type Media - External by referencing the template file’s URL.
To store a template in the database:
Select the Catalog Management>Catalog Elements window.
Click the New Item button in the upper right. The New Item dialog box displays.
Select Media - Internal Text from the “Item type” drop-down menu.
Fill in the name field, and use the
parentFolder
field to specify the folder to store the item in (required).Enter the actual template text in the large text box at the bottom of the dialog box. For example, you could enter or paste in a JSP page.
Fill in any of the optional fields you want and click OK.
To create a reference to an external template:
Select the Catalog Management>Catalog Elements window.
Click the New Item button in the upper right. The New Item dialog box displays.
Select Media - External from the “Item type” drop-down menu.
Fill in the name and URL fields, and use the
parentFolder
field to specify the folder to store the item in (required).Note that the name you specify is the name for the media-external repository item, and is distinct from the name of the JSP file referenced by the URL.
Fill in any of the optional fields you want and click OK.