Modifying Navigation Menus in UCM 11g
By Kyle Hatlestad on May 11, 2011
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:
id, label, linkType, linkData
FUNCTIONA, Function A, cgi, IdcService=FUNCTIONA
parentId, id, loadOrder
ADMINISTRATION, FUNCTIONA, 1000
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.
id, image, imageOpen
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.