Personalization element examples
The layout and design of a personalization element is created in a similar way to a menu element, with a header design, footer design, and a design to be repeated for each result.
Display personalized Web content.
Creating a Personalized menu.
- Create a content spot or personalization rule in Portal Personalization based on some Web Content Management content.
- Create a personalization element in Web Content Management.
- Click the Search button and select the content spot or personalization rule created before. Click OK.
- Create an element design to display the results of the content spot or personalization rule. This is similar to designing a Menu element or Navigator.
For example, Enter the following in the "Design for each menu search result" section:
<placeholder tag="namelink" /> <br>
- Save the personalization element.
- Reference the personalization element in a presentation template.
Display personalized content
To display a single piece of personalized Web Content Management content for different users:
- Create an authoring template that includes an element.
For example, a text element called "body".
- Create a set of content items based on this authoring template.
- Create a content spot or personalization rule in Portal Personalization based on the authoring template and content created above. The content spot or personalization rule should only return a single piece of Web Content Management Content for each user.
- Create a personalization element in Web Content Management.
- Click the Search button and select the content spot or personalization rule created before. Click OK.
- Create an element design to display the results of the content spot or personalization rule.
For example, Enter the following in the "Design for each menu search result" section:
<element type="Content" context="autofill" key="Body"/>This will display the content of the text element called "Body" from the content item returned by the content spot or personalization rule.
- Save the personalization element.
- Reference the personalization element in a presentation template.
Display personalized Web content components
A set of personalized Web content components can be displayed using a personalization element:
- Create a content spot or personalization rule in Portal Personalization that searches for Web content components.
- Create a personalization element in Web Content Management.
- Click the Search button and select the content spot or personalization rule created before. Click OK.
- Create an element design to display the results of the content spot or personalization rule.
For example, Enter the following in the "element design" section:
Header:
<div>Design for each menu search result:
Use a Component tag with a context of "autofill".
<span> <Component context="autofill" /> </span><br>Footer:
</div>
- Save the personalization element.
- Reference the personalization element in a presentation template.
Display attributes of Personalized content
The attributes of personalized content can also be displayed using a personalization element:
- Create a content spot or personalization rule in Portal Personalization .
- Create a personalization element in Web Content Management.
- Click the Search button and select the content spot or personalization rule created before. Click OK.
- Create an element design to display the results of the content spot or personalization rule.
For example, Enter the following in the "element design" section:
Header:
<div>Design for each menu search result:
Use a "AttributeResource" tag for each attribute you wish to display.
<span> <AttributeResource attributeName="ibmcm:title" /> <AttributeResource attributeName="ibmcm:date" format="dd/MM/yyyy" /> <AttributeResource attributeName="ibmcm:information" /> </span><br>Footer:
</div>
- Save the personalization element.
- Reference the personalization element in a presentation template.
Notes:
Attribute names:You can use the following attribute names:
- ibmcm:title
- ibmcm:description
- ibmcm:modifiedDate
- ibmcm:expirationDate
- ibmcm:effectiveDate
- ibmcm:authors
- ibmcm:categories
- ibmcm:keywords
- ibmcm:owners
- ibmcm:wcmId
Display keywords and categories
To retrieve a list of categories or keywords, Use the ProfileCmpnt tag.
Display authors and owners
To retrieve a list of authors or owners, Use the
IDCmpnt tag.
Display the Site Path.
To display the site path to a personalized Web Content Management element, use a placeholder tag.
Parent topic:
Use a Personalization element