Add predefined web content to the customization shelf
To make web content easier to find, the customization shelf provides categories to organize components that we can add, such as portlets, iWidgets, and web content. By default, the Web Content category includes four sample content items, but we can also add the own content to the Web Content category.To include a web content item in the Web Content category of the customization shelf.
- Use the administration interface, make a copy of the portlet called Web Content Viewer (JSR 286). Give the copy a name that indicates the content item that the viewer represents.
- Add the new web content viewer to a page. This page is only required temporarily to provide a way of configuring the web content viewer.
- Open the Configure mode for the portlet.
- Select the content item to add in the Content Type section.
- Select Select content and path in the Content Behavior section.
- Select Create content (based on selection) in the section called When this Portlet is added to the page.
Portlets that use this setting cannot be added to a page that does not have a default content association.
- In the Content section, specify the content item or site area that this viewer represents.
After completing these steps, the copy of the web content viewer representing the web content is displayed in the Web Content category of the customization shelf. Whenever we add this portlet copy to a page, the associated content item or site area is copied into the site area associated to the page by the default content association.
XML configuration interface note: We can also use xmlaccess.sh to create the copies of the web content viewer. To specify the behavior of the Create content (based on selection) setting with the xmlaccess command, specify this portlet preference in the XML import file:
- Preference: com.ibm.portal.wcm.copy.contents
- Value: true
Parent: Customize web content delivery