Hooked up everything for blog archives. Currently no UI to point to it though. Not sure how we're going to do that without widgets. Maybe with a hardcoded action filter for now?

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045086
This commit is contained in:
ErikPorter
2010-01-07 01:27:09 +00:00
parent 4d7faf669b
commit 6d9f911a9e
13 changed files with 238 additions and 12 deletions

View File

@@ -189,6 +189,23 @@ namespace Orchard.Blogs {
},
new MvcRouteHandler())
},
new RouteDescriptor {
Route = new Route(
"{blogSlug}/Archive/{*archiveData}",
new RouteValueDictionary {
{"area", "Orchard.Blogs"},
{"controller", "BlogPost"},
{"action", "ListByArchive"}
},
new RouteValueDictionary {
{"blogSlug", new IsBlogConstraint(_containerProvider)},
{"archiveData", new IsArchiveConstraint()}
},
new RouteValueDictionary {
{"area", "Orchard.Blogs"}
},
new MvcRouteHandler())
},
new RouteDescriptor {
Route = new Route(
"{blogSlug}/{postSlug}",