User assistance for content authors |
The Component tag is used to reference the content of a component within a presentation template or element design.
This is the format of a component tag:
[Component name=" " context="autofill" format=" " separator=" " compute=" " htmlencode=" " awareness=" " presentation=" " startPage=" " resultsPerPage=" " start=" " end=" " ]
To create a component tag:
Tag parameters | Details |
---|---|
name=" " | To use the library specified in the URL of the
current page, use name="./item". Note: If you specify name="./item",
the library name does not appear in your presentation template or
element design. The actual path is not resolved until the item is
rendered.
|
context="autofill" | This parameter is only used when referencing a Component tag within a Personalization element design to display the results of a Personalization rule that searches for components. |
start=" " end=" " |
The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory. |
format=" " | This parameter is optional and can only be used
with some component types:
|
compute=" " | This is only applicable to menu, navigator,
and taxonomy components. You specify compute="always" when you reference
some JSP code within a component design, and you want that code to
be run separately on each result returned by a menu, navigator and
taxonomy component. For example, if a menu referenced JSP code that used the public DocumentId getCurrentResultId(); method, you would use compute="always" to make the JSP code run separately in every result returned by the menu. If not specified, then compute="once" is used which is the default method for delivering the results of menu, navigator, and taxonomy components. |
htmlencode=" " | If htmlencode="true" the reserved HTML characters
in text and short text components are converted into character entities.
For example, '<' is converted to '<'. This is useful if
you would like to prevent users adding malicious code, or if you want
to prevent users changing the look and feel of their text using HTML.
If not specified, the default setting specified by the cmpnt.htmlEncodeDefault property in the WCM WCMConfigService service is used. By default, this property is set to true. |
awareness=" " | If awareness="true" then user names are displayed
using the people awareness features. This feature displays user names
as hyperlinks that allow users to contact people with whom they might
want to work. Wherever person links appear, users can click the link
to display a menu of actions for collaborating (contacting and working)
with the person named by the link. If you, as administrator, have
also configured an IBM® Sametime® server
to work with WebSphere® Portal,
person links indicate whether a person is active, away, offline, or
in a Do Not Disturb state. If not specified, then awareness="false" and people awareness is not used. |
presentation="itemname" | This is used to specify the name of a list presentation
to use when displaying a navigator, menu, personalization, or search
component. This will override the list presentation selected on the
component itself. To use the library specified in the URL of the
current page, use presentation="./item".
Note: If you specify presentation="./item",
the library name is not displayed in the tag. The actual path is not
resolved until the item is rendered.
|
startPage="number" | This parameter is optional and is used to set which page of results to display when a navigator, menu, personalization, or search component is first displayed. This will override the Start page value specified in the component itself. |
resultsPerPage="number" | This parameter is optional and is used to set the number of items to display in each page of results displayed by a navigator, menu, personalization, or search component. This will override the Results per page value specified in the component itself. |
separator=" " | This only used when referencing a user selection component. It is used to define what text or code is rendered between each selection. For example, to add a line break between each selection, you would use separator="<br>" . If not defined, a comma is placed between each selection when rendered. |