1 Reply Latest reply on Mar 13, 2004 11:22 AM by sgwood

    adding menu items to a menublock

    furykid

      Hi,
      how can I add menuitems to a menublock ? what I would need is a set of links which should be visible independently of the users login status and a set of links only visible depending on his privileges.

      and how is the url syntax for a link to a htmlblock to be filled with a specific page ?

      tia
      furykid

        • 1. Re: adding menu items to a menublock


          In server/default/nukes/menu-block-service.xml, see:

          <attribute name="Before">
           <menu>
           <item title="Home" url="index.html" description="Back to the home page."/>
           </menu>
          </attribute>


          This gets you links in the menu before any roles based links, that are always displayed when the user is logged in. There is an equivalent "After" attribute.

          The menu only displays links that the logged in user has available to them, based on the user's groups.

          You will need to subclass MenuBlock and override the getDisplayed(Page p) method to always return true, so that your menu always appears.


          If I understand what you are looking to do with the htmlblock, it looks like the parameters are:

          module=html&op=display&id=1235

          Sherman