November Happy Hour will be moved to Thursday December 5th.
I use custom Content Provider with route defined as:
RouteTable.Routes.MapContentRoute(
"CustomMedia",
ProviderKey + "/{node}/{partial}/{action}",
new { action = "index" },
s => root.ContentLink);
I set RouteSegment (filename) on MediaData object and it gives me URLs like:
htpp://site.com/{provider name}/{path}/{name}
The problem here is that name can be duplicated and it generates collisions. How can I modify the route to include additional ID in the url e.g.
htpp://site.com/{provider name}/{id}/{path}/{name}
Should I write my own IUrlSegmentRouter/IPartialRouter or what is the easiest way here to avoid duplication?
I use custom Content Provider with route defined as:
RouteTable.Routes.MapContentRoute(
"CustomMedia",
ProviderKey + "/{node}/{partial}/{action}",
new { action = "index" },
s => root.ContentLink);
I set RouteSegment (filename) on MediaData object and it gives me URLs like:
htpp://site.com/{provider name}/{path}/{name}
The problem here is that name can be duplicated and it generates collisions. How can I modify the route to include additional ID in the url e.g.
htpp://site.com/{provider name}/{id}/{path}/{name}
Should I write my own IUrlSegmentRouter/IPartialRouter or what is the easiest way here to avoid duplication?