1 Reply Latest reply: Oct 30, 2012 10:05 PM by Branchbird - Pat RSS

    Trying to add menu selections to Workbench

    953835
      Trying to add additional menu items to represent another set of reports. Looking at <>/Workbench/workspace/conf/ws-mainMenu.xml I see how to define the menu items. But I don't know how that links into any thing else, or how the labels are applied.
      Looking at the source of the web page I see this:
      javascript:budoLookupTable['toggle-subnav-reporting'].toggle();" id="toggle-subnav-reporting" >View Reports</a>
      but I don't know where that is coming from.
        • 1. Re: Trying to add menu selections to Workbench
          Branchbird - Pat
          The id's in the ws-mainMenu.xml links off to the ws-extensions.xml file as well as certain "well-known" keys that come bundled with Workbench itself.

          For a "Hello World" type example, you can add the following to ws-mainMenu.xml:

          <menuitem id="stuff" onLaunchPage="true"/>

          and the following to ws-extensions.xml:

          <extension id="stuff"
          defaultName="New Stuff"
          defaultDescription="Hello World."
          role="settings"
          url="http://www.cnn.com"
          sharedSecret="[COPY THIS FROM AN EXISTING ENTRY IN THE FILE]"
          height="800"/>

          After a restart of the Endeca Tools Service, you should now see your entry in the Workbench. There's a ton of stuff you can do here and additional context variables to make a more "real" Endeca specific extension but this should at least get you started.

          Regards,

          Patrick