Referencing Personalization content
The "AttributeResource" tag is used as a placeholder to display attributes from a content spot or rule within a Personalization element design. It cannot be used in a presentation template or other element types.
<AttributeResource attributeName="ibmcm: " format=" " separator=" " start=" " end=" " /> <AttributeResource
Opens an element tag. attributeName=
"ibmcm: "
This is the name of the attribute you would like to display from a content spot or Personalization rule. When selecting a content spot or Personalization rule in a Personalization element form, the list of attributes for each content spot or Personalization rule is listed in the right-hand view.The attribute must always be prefixed by "ibmcm: attributeName="ibmcm:attribute"The following attribute names can be used:
- ibmcm:title
- ibmcm:description
- ibmcm:modifiedDate
- ibmcm:expirationDate
- ibmcm:effectiveDate
- ibmcm:authors
- ibmcm:categories
- ibmcm:keywords
- ibmcm:owners
- ibmcm:wcmId
format=" "
- When referencing number or date elements:
- In this case, the format is used to specify the display format of dates and numbers. The following formats can be defined when displaying dates:
- format="DATE_SHORT"
- format="DATE_MEDIUM"
- format="DATE_LONG"
- format="DATE_FULL"
- format="DATE_TIME_SHORT"
- format="DATE_TIME_MEDIUM"
- format="DATE_TIME_LONG"
- format="DATE_TIME_FULL"
- format="TIME_SHORT"
- format="TIME_MEDIUM"
- format="TIME_LONG"
- format="TIME_FULL"
- format="relative" (The relative date will be displayed as either "today", "yesterday" or the number of days ago.)
You can also set user-defined formats for both dates and numbers.
- When referencing user details:
- When formatting user details, the format parameter is used to define which LDAP parameter to use when displaying user details.
For example:
- format="cn" is used to display the common name.
- format="dn" is used to display the distinguished name.
- Maximum character length:
- You can also specify a maximum number of characters to display by using this format:
- format="length:number_of_characters"
For example, to display a maximum of ten characters you would specify the following parameter:
- format="length:10"
separator=" " Separate each result returned by the personalization rule. For example, separator=", "
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. /> This closes a tag.
Referencing Web content components retrieved by a Personalization rule or content spot. To display the results of a Personalization rule that searches for components, use a Component tag with a context of "autofill".
For example:
- <Component context="autofill" />
Parent topic:
Creating Web content tags