Skip to end of metadata
Go to start of metadata

Templates view in WCM Editor shows main templates list.

Only Wcm managers users can manage templates:

Templates list is ordered by created/modified date showing more recent templates first.

Per tempalte item is shown attributes:

  • Template name
  • Last user who modified uploaded
  • Modified date

From Templates view manager user can perform following operations:

  • Create, edit or delete a single template or a group of selected templates.
  • Browse and filter templates per categories or template name.
  • Define relationships between templates.

4.1.1 Creating a new template

From "New template" action we can access to a rich editor where we can write our template:

A template in GateIn WCM is a html document with some special tags called wcm tags.

Templates have a title and locale as metadata.

Like posts, template content is written in the rich editor:

Templates rich editor is similar as described in Writting Posts but it has a specific feature for listing special wcm tags:

The use and features of each wcm tag will be covered in next point 4.2.

4.1.2 Editing an existing template

From templates view we can edit an existing template accesing through template name link or edit link.

Edit template view is similar like "New template" view but it has a new functionality: version management.

Version selector allows to change from template version in the active editor.

Every time a template is saved, a new version is created in the repository.

4.1.3 Add categories to a template

Each template can have several categories attached.
Categories are defined in next line under template name.

For example, the following template:

has two categories "Concert" and "Events".

Each category has a link that is a shortcut for filter per category:

A new category can be added through Category link:

A category can be removed throught Remove icon

4.1.4 Relationships

GateIn WCM allows to link templates using relationships in a similar way like posts.

A relationship has a key attribute that defines which is the template related for a given source template.

GateIn WCM uses relationship as soft links, both templates source and target are independents.

For example:

  • We have a Template A written in english (en).
  • We have a Template B written in spanish (es).
  • We want to define a relationship to say that Template B is related with Template A with key "es", in a logical expression, RelationShip(Templatae A, "es") = Template B.

Relationships can be used per WCM Content portlet to redirect automatically content given the current locale of user.

Relationships can be defined used the following dialog:

Relationships have one direction, in the example,<Example> has a relationship with <Example - es> with es key.

Bidirectional relationships have to be declared explicitly, in our example, we should create a new relation on <Example - es> linked with <Example> with en key.

gatein gatein Delete
wcm wcm Delete
templates templates Delete
editor editor Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.