Jump to content
We've recently updated our Privacy Statement, available here ×

how to add a menu under submenu ? for example under view->repository


antonc

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

To add s submenu you will need to perform follwoing actions:
 
  1. Open <js-webapp>/WEB-INF/actionModel-navigation.xml.
  2. Find there such lines:
    <context name="main_view_mutton" test="!banUserRole"><selectAction labelKey="menu.repository">
  3. Replace there this line:
    <option labelKey="menu.all" action="primaryNavModule.navigationOption" actionArgs="browse"/>
    with
    <selectAction labelKey="menu.all"><option labelKey="my.custom.action" action="primaryNavModule.navigationOption" actionArgs="myCustomAction"></option></selectAction>
  4. Open <js-webapp>/scripts/actionModel.primaryNavigation.js.
  5. Find there object navigationPaths and add there new property for your custom action:
    myCustomAction : {url : "<YOUR_URL>", params : "<ADDITIONAL_URL_PARAMS>"}
  6. Open <js-webapp>/WEB_INF/bundles/jasperserver_messages.properties.
  7. Add there label for your menu item:
    my.custom.action=My Custom Action
  8. with 4. Open /scripts/actionModel.primaryNavigation.js. 5. Find there object navigationPaths and add there new property for your custom action: browse : {url : "", params : ""} 6. Open /WEB_INF/bundles/jasperserver_messages.properties. 7. Add there label for your menu item: my.custom.action=My Custom Action 8. Restart your web-server for changes to take an effect.Restart your web-server for changes to take an effect.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...