Parameters on editable menus

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Parameters on editable menus

Reinier van den Born-2
Hi,

When using an EditableMenu, I would like to access the parameters that I put on the HstSiteMenu items.
But I don't see a getParameters() on the EditableMenuItem, nor a way to get to the matching Hst menu item.
Am I overlooking the obvious somewhere?

If not, the documentation of EditableMenuItem suggests that it gets a copy of its Hst sibling properties.
Can someone confirm that is actually the case?

If this is so, the parameters should be in there and I need to dig them out.
Before I reinvent the wheel, is there an existing utility routine that does this digging and
extracts a parameter Map from a properties Map?

Any help is greatly appreciated,


Reinier




--

Reinier van den Born
HintTech B.V.

T: +31(0)88 268 25 00
F: +31(0)88 268 25 01
M: +31(0)6 494 171 36

Delftechpark 37i | 2628 XJ Delft | The Netherlands
www.hinttech.com

HintTech is a specialist in eBusiness Technology ( .Net, Java platform, Tridion ) and IT-Projects.
Chamber of Commerce The Hague nr. 27242282 | Sales Tax nr. NL8062.16.396.B01
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
Reply | Threaded
Open this post in threaded view
|

Re: Parameters on editable menus

Bert Leunis
Hi Reinier,

I don't know if you can get to those parameters from the EditableMenuItems. But I know you can get the parameters you set on a sitemenuitem from the HstSiteMenuItems. Is that what you need?

final HstSiteMenu main = request.getRequestContext().getHstSiteMenus().getSiteMenu("main");
for(HstSiteMenuItem item : main.getSiteMenuItems()) {
      item.getParameters();
}

Note: it always helps mentioning on which version of hippo you are.


With kind regards/Met vriendelijke groet,
Bert Leunis

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com


On Wed, Jan 23, 2013 at 11:52 AM, Reinier van den Born <[hidden email]> wrote:
Hi,

When using an EditableMenu, I would like to access the parameters that I put on the HstSiteMenu items.
But I don't see a getParameters() on the EditableMenuItem, nor a way to get to the matching Hst menu item.
Am I overlooking the obvious somewhere?

If not, the documentation of EditableMenuItem suggests that it gets a copy of its Hst sibling properties.
Can someone confirm that is actually the case?

If this is so, the parameters should be in there and I need to dig them out.
Before I reinvent the wheel, is there an existing utility routine that does this digging and
extracts a parameter Map from a properties Map?

Any help is greatly appreciated,


Reinier




--

Reinier van den Born
HintTech B.V.

T: <a href="tel:%2B31%280%2988%20268%2025%2000" value="+31882682500">+31(0)88 268 25 00
F: <a href="tel:%2B31%280%2988%20268%2025%2001" value="+31882682501">+31(0)88 268 25 01
M: <a href="tel:%2B31%280%296%20494%20171%2036" value="+31649417136">+31(0)6 494 171 36

Delftechpark 37i | 2628 XJ Delft | The Netherlands
www.hinttech.com

HintTech is a specialist in eBusiness Technology ( .Net, Java platform, Tridion ) and IT-Projects.
Chamber of Commerce The Hague nr. 27242282 | Sales Tax nr. NL8062.16.396.B01
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html


_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html