Here’s a quick guide on how to add extra links to your UCM navigation..
I believe Oracle have revised this in 10g, but this method still works for me
Read On to find out how to do it!
1. Create a new component within Component Wizard.
2. Create a new resource holder.
3. Add the following resource - custom_finish_layout_init
4. Add the following code -
[[% Include any extra links layout options from other components %]]
<$include super.custom_finish_layout_init$>
[[% Add NavTree to top level Node to allow extra links -
Nodes Available== "LOGIN", "MICROSOFT_LOGIN", "SELF_REGISTRATION", "HOME", "LOCAL_HOME","SEARCH", "NEW_CHECK_IN", "MY_PROFILE", "HELP"
%]]
[[% Howto create new menu items nodes -
navBuilder.menuB.addTopLevelNode("NEW_NODE_ID");
%]]
[[% Example - add links to 'New Check In' Link
-- Create navtree.
%]]
navBuilder.addChildNodeTo('NAVTREE', 'collection', 'id==NEW_CHECK_IN', 'label=='+lc('wwNewCheckIn'));
navBuilder.addChildNodeTo
(
'NEW_CHECK_IN',
'item',
'id==Custom_Checkin_Links',
'label==Carillion Checkin',
'url==' + httpCgiPath +'?IdcService=ETHER_CHECKIN'
);
[[% Append 3 Example links to NavTree node %]]
navBuilder.addChildNodeTo
(
'NEW_CHECK_IN',
'item',
'id==Option1',
'label==Example Checkin Link 1',
'url==' + httpCgiPath +'?IdcService=CHECKIN_NEW_FORM'
);
navBuilder.addChildNodeTo
(
'NEW_CHECK_IN',
'item',
'id==Option2',
'label==Example Checkin Link 2',
'url==' + httpCgiPath +'?IdcService=CUSTOM_SERVICE'
);
navBuilder.addChildNodeTo
(
'NEW_CHECK_IN',
'item',
'id==Option3',
'label==Example Checkin Link 3',
'url==' + httpCgiPath +'?IdcService=CUSTOM_SERVICE2'
);
And thats it! ![]()
If you have any questions just ask or If you need to make sure the links are multilingual just change the label to 'label=='+lc('wwMyCustomLabel')
and create your own ww_strings resource files.

3 Responses for "How to:: Modify Oracle UCM / Stellent Navigation."
What if I want to add something other than links?
Can you paste an example how to add a custom form (similar to the search navigation menu)?
Not 100% on what you want but here’s what you could try.
Not sure if this will work but..
This will allow you to reuse the quick search form popup..
Add a new navigation node:
navBuilder.addChildNodeTo('NAVTREE', 'collection', 'id==NEW_CHECK_IN', 'label==Quick Form'));Now add the url reusing the javascript popup function from the quick search navigation I think you are talking about in the top right hand side..
So URL would look like this:
'url=='showPopup(\'myFormContainer\', \'NEW_CHECK_IN\', event, \'position=west\');'Create a div element with your form in it..
Thats it output everything together would look like this::
navBuilder.addChildNodeTo(’NAVTREE’, ‘collection’, ‘id==NEW_CHECK_IN’, ‘label==Quick Form’, ‘url==’showPopup(\’myFormContainer\’, \’NEW_CHECK_IN\’, event, \’position=west\’);’));
you may want to replace \’ with double quotes ” as I haven`t looked through how addChildNodeTo function works..
I`ll email you hold on.. can`t post code on my blog.. too lazy to fix at the mo.
Leave a reply