A bit more work getting content display in order

- content title added to the item shape (@Model.Title)
- some rough content item shape structure - needs real body zones and footer (need header @ footer markup at least as zone wrappers in a way so if there is nothing in the zone the tags aren't rendered)
- page title usage back in the picture though (impl.) not really touched
- contents and routable display type actions all falling back to the core shaped "Display" view

--HG--
branch : theming
This commit is contained in:
Nathan Heskew
2010-09-13 14:26:07 -07:00
parent a49555d6ab
commit a996aac51f
15 changed files with 32 additions and 37 deletions

View File

@@ -41,7 +41,7 @@ namespace Orchard.Core.Routable.Controllers {
throw new ApplicationException("Ambiguous content");
}
var model = _contentManager.BuildDisplayModel<IRoutableAspect>(hits.Single(), "Detail");
var model = _contentManager.BuildDisplayModel<IRoutableAspect>(hits.Single());
return View(model);
}

View File

@@ -34,6 +34,8 @@ namespace Orchard.Core.Routable.Handlers {
routable.Path = routable.GetPathWithSlug(routable.Slug);
});
OnGetDisplayShape<RoutePart>((context, routable) => context.Model.Title = routable.Title);
OnPublished<RoutePart>((context, routable) => {
if (context.PublishingItemVersionRecord != null)
processSlug(routable);

View File

@@ -1,2 +0,0 @@
@//Html.AddTitleParts((string)Model.Routable.Item.Title);
@Display(Model)