i have website generates navigation menus based on user access levels. code uses webservices & xslt data , transform in browser.
now want export site freely available cms, can suggest cms in functionality built-in. liked orchard unable work.
thank time , suggestions.
i guess won't find cms have built-in , wouldn't involve coding make work.
it easy add such functionality in orchard, though. 2 things you'd have be:
- create orchard module (which can autogenerated via command-line)
- create class in module project implements inavigationprovider interface. there single method override returns menu items collection (properly hierarchized via parent <-> items properties). custom item-retrieval logic should happen right here. there menuname property override - should return name of generated menu (can pretty anything).
and - compile solution , enable module feature via dashboard -> modules -> features.
to display menu use advanced menu module. after installing , enabling feature can drop menuwidget (or styledmenuwidget if want simple, pre-styled menu) zone want (you can dashboard -> widgets). when doing you'd asked name of menu render. provide name inavigationprovider's menuname property returns.
hth
Comments
Post a Comment