maartenba / MvcSiteMapProvider

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

SiteMap Diagnostic Utility #188

Open NightOwl888 opened 10 years ago

NightOwl888 commented 10 years ago

This idea came from https://github.com/waynebrantley in #119.

Implement an httpmodule that can be plugged in for development with url of sitemaps.axd. That would give a full diagnostic view of the tree and relationships.

Technically, I think it should be a regular view that uses routing similar to the way ELMAH works. It should also by default be available only on the local machine, but be configurable so it can use authentication to gain access.

maartenba commented 10 years ago

Perhaps something that plugs into Glimpse? http://getglimpse.com

NightOwl888 commented 10 years ago

Perhaps something that plugs into Glimpse? http://getglimpse.com

Sounds like it might be an option. Keep the ideas coming.

maartenba commented 10 years ago

What is the data we want to see in the plugin? Current thinking:

Jogai commented 10 years ago

Nice Idea! It reminds me of a module from attributerouting: http://attributerouting.net/#debugging

NightOwl888 commented 10 years ago

What is the data we want to see in the plugin? Current thinking:

List of sitemaps Full tree for every site map

I think that we should probably add current matching route and current matching node to the list (and the special cases when there is no match on route or node).

It should also be really easy to view the route data of each of the nodes in a list so it is easy to understand why your node isn't matching the incoming route. Perhaps we could even use percentages and color codes to show how close the node is to matching the current route in the list.

Nodes that are URL based should be represented differently so it is clear that they will never match a route, but can match the URL.

It should also be easy to tell if the node is not clickable.

This idea was born out of a little utility to determine what the current route looks like when typing the URL into the browser. http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx/