User assistance for content authors |
---|
Configuring Personalized List portlet
Configuration mode allows an administrator to choose the type and formatting of the personalized content.
Retrieving personalization resources
About this task
Procedure
Display all resources from a single resource collection
- Select Show all resources of the following type and select the collection type. Use this option for collections that return a low number of resources.
Display the results of a content spot in the portlet
- Select Show the results from Content Spot.
- Select the content spot by its path. The content spot is run exactly as if it was included in a JSP, so all campaign rule-mappings are considered.
Run the rule directly without any campaign mitigation
- Select Execute the following rule and select the rule by its path.
Displaying details
About this task
- If the Personalized List portlet is placed on the same page as the Personalization Editor portlet, you can select Open object in Personalization editor. Information from the returned resource is shown in the Personalization Editor portlet.
- If Generate details page is selected, a detail attribute from the Display Options tab must also be selected.
- If Use an existing JSP in the portlet WAR is selected, specify the full path of the JSP relative to the root of the Personalized List portlet WAR. This existing JSP is displayed when the user clicks one of the links in the list of resources. In order for the JSP to access the referenced resource, you must add a <jsp:useBean> tag to the beginning of your custom JSP. The resource is placed on the HTTP request object with the key "resourceObject". The resource objects are instances of the resource class that is defined for the running rule's resource collection. If the returned resource class is wcpdemo.Users, use the bean tag at the beginning of the JSP. For example, you can use this syntax: <jp:useBean type="wcpdemo.Users" id="resourceObject" scope="request"/>
The JSP is now able to start methods and read properties on the resource that is returned by the rule.
Choosing attributes
Procedure
Selecting layout options
Procedure
Selecting style classes
Procedure
- Under the Display Options tab, select the output option.
- Default CSS styles are given for each property type. To create new styles, add them to the /jsp/include/rulePortlet.jsp or to the current Portal theme style sheet.
Configuring edit mode to select rule and display options
About this task
You might set a portlet parameter that is named pzn.configureInEditMode to a value of true. When true, this parameter changes the behavior of the Personalized List so that the normal configuration page is shown in edit mode. This action allows edit authority to be used to select which rule is displayed in the list portlet. This property defaults to false, meaning that selection of the rule and display options is done in configure mode. When true, the normal edit option for number of items per page is not available.
Portlet configuration parameters might be set in the Administrative Portlets.