6-22 Oracle Fusion Middleware Tutorial for Oracle WebCenter Developers
that documents have to be tagged with the keyword: menu for the content query to work properly.
Figure 6–33 The Menu Contact Content Query Text Entered
9. Ensure that you check Insert Folder Contents.
10.
To ensure that your Content Query executes properly and returns the correct set of results, you need to set its metadata on the content.
As shown in Step 8, the Content Management Interoperability Services CMIS query looks like this:
SELECT cmis:name FROM ora:t:IDC:GlobalProfile WHERE ora:p:xWCTags LIKE ’menu’
Note that UCM relies on the concept of a “display” name and an “internal” name for each metadata field. For example, in this CMIS query xWCtags is the internal
name for the metadata field while Tags is the display name for the same field. When you build a CMIS query, you need to use the UCM internal name for the
field.
Tip:
You need to perform this step, which is necessary and required in this case, to ensure that the result of the menu content query is
published under the menu node because the menu content query is a child of the menu node. The step is not required in all use cases,
however.
Connecting to and Managing Content Repositories 6-23
The following steps will enable you to set the correct values on the Tags field.
11.
Log into the UCM instance with Administrator privileges enabled, as shown in Figure 6–34
.
Figure 6–34 Login With Administrator Privileges
12.
Navigate to the Menu folder in the Contribution Folders directory in the UCM repository, as shown in
Figure 6–35 .
Tip: The CMIS query used in this example fetches all the documents
based on the metadata field Tags. For the content query to work properly, you must enter the metadata next to the Tags field in the
UCM Administration Console for Oracle Content Server. In this example, the Tags field is set to a value specified as menu.
Keep in mind that the Tags field described here is strictly one of the metadata fields in UCM, and not related to any other Oracle
WebCenter Tags service or tagging capability.
For more information on how to view UCM content metadata -- in particular, the Tags field -- see the section “Viewing Content
Information” in the Chapter “Working with Files” in Oracle Fusion Middleware Users Guide for Content Server.
For more information on how to update UCM content metadata, see the section “Content Item Metadata” in the Chapter “Working with
Files” in Oracle Fusion Middleware Users Guide for Content Server.
6-24 Oracle Fusion Middleware Tutorial for Oracle WebCenter Developers
Figure 6–35 The Menu Folder For Oracle Content Server in UCM
13. Click the Info button under the Actions menu item for the fastfood.htmlfile,