+

Search Tips   |   Advanced Search

Add predefined web content to the site toolbar

The site toolbar provides categories for components we can add, such as portlets, iWidgets, and web content. The Web Content category includes four sample content items. We can also add our own content to the Web Content category.

To include a web content item in the Web Content category of the site toolbar...

  1. Using the administration interface, make a copy of the Web Content Viewer portlet.

    Give the copy a name that indicates the content item the viewer represents.

  2. Add the new web content viewer to a page.

    The page is only required temporarily to provide a way of configuring the web content viewer.

  3. Open the Configure mode for the portlet.

  4. Select the content item to add in the Content Type section.

  5. Select Select content and path in the Content Behavior section.

  6. 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.

  7. In the Content section, specify the content item or site area that this viewer represents.


Results

After completing these steps, the copy of the web content viewer representing the web content is displayed in the Create Applications category of the site toolbar. Whenever you 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.

We can also use the XML configuration interface (xmlaccess command) 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