Monday, August 31, 2009

How to combine the results of queries based on two criteria in the Web Content Management local rendering portlet




When using an IBM® Web Content Management (WCM) local rendering portlet, how can one utilize the combined query results based on two criteria?

**Note:** This information is not included in the WebSphere Portal information center topic: Defining menu element formatting options.


Cause
A menu element displays metadata and content from content items that match the search criteria of the menu element. The search criteria of a menu element can include matching site areas, authoring templates, categories and keywords.

The information center topic Defining menu element formatting options does not include any reference for a more complex scenario whereby you could combine the results of a query based on two criteria to include the results of both queries -- a menu component that retrieves content based on a query that considers both a site area or a category.

Example: Menus that display "ALL the contents for a specific site area and an item that is in another site area and has been tagged with a specific category" by combining the search parameters "Site area X" and a "category Y".


Resolving the problem
  1. Create two menus: one for each specific query.

  2. Wrap both menus using an HTML component.

This combination should resolve the issue while providing optimal application performance.

Steps to Expand and Collapse content items within Navigator Component

How can I configure an IBM® Web Content Management (WCM) Navigator component to expand and collapse the content item tree?


Edit the Navigator component.

  1. Set the following fields:
    "Start Type" to Selected
    "Ancestor Level" to All
    "Descendent Level" to "1 Level" as shown in the diagram.
    ( This setting will display only the Site Areas beneath the selected Site Area ( Environment Program )