maartenba / MvcSiteMapProvider

An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
Microsoft Public License
539 stars 218 forks source link

Is it possible to use a sitemap provider that lies outside an MVC project? #474

Closed RubixRevenge closed 6 years ago

RubixRevenge commented 6 years ago

Forgive me if the answer to this question already exists in the documentation, but I have not been able to locate it or recognize the answer if I saw it.

I use MvcSitemapProvider (version 4 for .NET MVC 5) to handle my site navigation from a single sitemap file. However, my MVC 5 project has grown to be very large. I would like to split the single application into different solutions because each of the areas really are (mostly) independent of each other.

In other words, I want to refactor my project from this:

Solution "One Mega MVC Project"

to this:

Having an identical sitemap file per project looks to me like breaking the "do not repeat yourself" rule. Is there a way for me to have only one sitemap file that all the projects read from, so I only need to maintain a single sitemap file?

RubixRevenge commented 6 years ago

Thinking about this some more. I could potentially follow this model.

For example, when browser is in a Sitemap View of Website 1, the user sees (in pseudo-code).

It would be better if they could see the union of both link sets, so that the same order of links could be presented no matter which website you are in.

RubixRevenge commented 6 years ago

Closing this issue as the Nuget package is abandoned.