Creating web content when you add a web content viewer to a page | HCL Digital Experience
To make it easier for users to find web content, the site toolbar provides palettes. You use these palettes to organize components that you can add, such as portlets, iWidgets, and web content.
About this task
By default, the Content palette includes four sample content items. You can add your own content to the Content palette. For more details about how to do so, read Customizing the Page Component palette.
To add web content, you can use the preferred drag-and-drop configurations. You can also configure individual copies of the Web Content Viewer portlet to copy web content when you add these portlet copies to a page. Copies of the web content viewer appear in the Applications palette of the site toolbar.
To include a web content item in the Applications palette of the site toolbar, follow the procedure that is given here.
Procedure
- Make a copy of the portlet called Web Content Viewer.
To do so, use the portal administration interface. Give the copy a name that indicates the content item that the viewer represents.
- Add the new web content viewer to a page. You need this page only temporarily to provide a way of configuring the web content viewer.
- Open the Configure mode for the portlet.
- From the Content Type section, select the content item that you want to add.
- From the Content Behavior section, select Select content and path.
- From the section that is named When this Portlet
is added to the page, select Create content
(based on selection). Note: You cannot add portlets that use this setting to a page that does not have a default content association.
- In the Content section, specify the content item or site area that this web content viewer represents.
Results
- Preference:
com.ibm.portal.wcm.copy.contents
- Value:
true
- Preference:
WCM_COPY_CONTENT_RELATIVE_PATH
- Value:
site_area_name
WCM_COPY_CONTENT_RELATIVE_PATH
preference
to a page, the portal first creates the specified site area under
the default content association of the page. Afterward, the portal
copies the web content that is associated with the web content viewer
to the specified site area rather than to the default content association.