Menu like the Resources menu on the Sitefinity.com site
Hi there.
We just installed SF5 and I am trying to find how to do a menu like the one for Resources on this site, but I can't find much information. I need to do at least 3 columns, of which only the first one would be dynamic (i.e. following the site map) and the last one would have images like the Resources menu above.
Could someone explain how this is done? Which controls are used (like a panel inside a menu, or vice-versa, or anything else)?
Is it done through the user controls, or is it just using Widgets?
Any help would be appreciated.
Thanks!
Olivier
Appears to be a custom implementation, use firefox+firebug to inspect it.
So you'd have to make your own usercontrol and somehow render out the menu items dynamically, then use jQuery to add in all the click\animation events.
Here's the click event for the resources menu item above
$(
"#menu .menu-link.has-sub"
).click(
function
()
if
(!$(
this
).next().hasClass(
"show-sub"
))
$(
".sub-menu"
).removeClass(
"show-sub"
);
$(
".menu-link"
).removeClass(
"menu-opened"
);
$(
"body"
).bind(
"click"
, hideSubMenuOfTopNav);
else
$(
"body"
).unbind(
'click'
);
$(
this
).next().toggleClass(
"show-sub"
);
$(
this
).toggleClass(
"menu-opened"
);
);
Thanks Steve.
I will look into this - good point is that I will have to learn JScript, or at least understand it better.
Great! Thanks for the link - will surely be usefull.