Sitedetout - Tutoriels informatiques

Modifying Navigation Menus in UCM 11g

Modifying Navigation Menus in UCM 11g

UCM Custom Navigation Menus

In UCM 11g, the way the navigation menus are constructed are done differently now.  In the past, this was handled with a navbuilder API in Javascript that allowed for menu choices to be manipulated with commands such as:

navBuilder.addChildNodeTo('ADMINISTRATION', 'item', 'id==FUNCTIONA', 'label==Function A'), 'url=='+httpCgiPath+'?IdcService=FUNCTIONA');

Well, in 11g that method has been deprecated in favor of a new method.   This new method takes advantage of a new data table construct in 11g Idoc Script called Dynamic Data Tables.  These allow you to create tables of data in Idoc Script and dynamically change them as opposed to the static table definitions.  This is useful for data that changes frequently and may be user specific…like the navigation menu.  I won’t go into detail on Dynamic Data Tables here, but you can read up more about them in the Oracle Fusion Middleware Developer’s Guide for Oracle Universal Content Management 11g Release 1 (11.1.1).

So for the example above, the code would now look like this in the custom component’s resource file:

<@dynamicdata [email protected]>
id, label, linkType, linkData
FUNCTIONA, Function A, cgi, IdcService=FUNCTIONA
<@[email protected]>

<@dynamicdata [email protected]>
parentId, id, loadOrder
ADMINISTRATION, FUNCTIONA, 1000
<@[email protected]>

Then you can add some additional information to the menu such as any flags/conditions on when it should be shown and any image to be displayed with it in the Trays view.

<@dynamicdata [email protected]>
id, flags
FUNCTIONA, isAdmin
<@[email protected]>

<@dynamicdata [email protected]>
id, image, imageOpen
FUNCTIONA, ScsPageItem.gif,
<@[email protected]>

To help get you started, I’ve posted a sample component that gives an example of these methods and includes a readme.html that goes into detail on the different options that are possible.


Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.

Menu Title
Chargement...

Powered by sitedetout.com