cloudscribe/cloudscribe.Web.Navigation

Is there an alternative to MvcSiteMapNodeAttribute ?

Opened this issue · 6 comments

In MvcSiteMapProvider, there is a MvcSiteMapNodeAttribute class which can be used to set node data via attributes on controller's actions.
I wonder if there is an alternative or something similar in cloudscribe.Web.Navigation or if it is on the future plan.
Thanks!

Hi @percyboy
We have no firm plans for that at the moment, but it would be useful if you could perhaps give us an example 'use case' of something you would like to use that for, which can't already be achieved?
Note that it is already possible to add a node for any controller action into the site map just by specifying it in the navigation.xml file - and you can use the componentVisibility="sitemap" filter property if you want it to be rendered in the site map only, not a part of the main navigation menu system.
Cheers, Jim

Thanks for your reply! You may check the following document for an example:
https://github.com/maartenba/MvcSiteMapProvider/wiki/Defining-sitemap-nodes-using-.NET-attributes

I suppose it is a core feature of MvcSiteMapProvider from v2, which makes it convenient to keep the node information in the same place as your controller action.

I've implemented it. I'll try to make a fork and pull it here.
It may take some time because I'm a green hand on git or github.

Thanks @percyboy sounds interesting... please feel free to make a pull request and we'll take a look. If there's anything we want to bring into cloudscribe.Web.Navigation we may need to ask you to sign a contributor agreement, depending on size of the contribution.

@percyboy we're ready to look at and consider your contribution. But first, please could you read the information here https://github.com/cloudscribe/cloudscribe/blob/master/CONTRIBUTING.md and and complete and send us a contribution agreement. Thanks.

Closing as no coherent case for change and no agreement signed for code contrib.