Adding first level tab in navigator
This section details how to add custom first level tab in navigator.
Create an action in custom-actions.xml
Create an action for your new tab in custom-actions.xml. If your action requires stickiness you should use the navigation servlet for your action.
<objecttype name="navigation" class="">
<action name="mytab" renderType="GENERAL">
<command class="netmarkets" method="servlet/Navigation?tab=mytab"
windowType="page"/>
</action>
…
</objecttype>
Add your action to the main navigation action model in custom-actionModels.xml
Copy the “main navigation” action model from navigation-actionModels.xml to custom-actionModels.xml.
Add above created action “mytab” to the action model.
<!-- Main navigation -->
<model name="main navigation">
<action name="home" type="navigation"/>
<action name="product" type="navigation"/>
<action name="project" type="navigation"/>
<action name="change" type="navigation"/>
<action name="library" type="navigation"/>
<action name=”mytab” type=”navigation”/>
<action name="org" type="navigation"/>
<action name="site" type="navigation"/>
</model>
Create an entry in a rbinfo file
Create localization strings for your action in
action.properties or your own rbInfo file. See
Action Framework for Windchill Client Architecture for more detailed information.