mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
@//Html.AddTitleParts((string)Model.Routable.Item.Title);
|
||||
@Display(Model)
|
||||
Reference in New Issue
Block a user