mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Updating comments w/ content shape alternate examples and a little addtl. cleanup
--HG-- branch : dev
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Orchard.Core.Contents {
|
||||
displaying.ShapeMetadata.Alternates.Add("Content__" + contentItem.Id);
|
||||
//Content.Summary
|
||||
displaying.ShapeMetadata.Alternates.Add("Content_" + displaying.ShapeMetadata.DisplayType);
|
||||
//Content.Summary-Page
|
||||
//Content-Page.Summary
|
||||
displaying.ShapeMetadata.Alternates.Add("Content_" + displaying.ShapeMetadata.DisplayType + "__" + contentItem.ContentType);
|
||||
|
||||
if (!displaying.ShapeMetadata.DisplayType.Contains("Admin"))
|
||||
@@ -30,7 +30,7 @@ namespace Orchard.Core.Contents {
|
||||
.OnDisplaying(displaying => {
|
||||
ContentItem contentItem = displaying.Shape.ContentItem;
|
||||
if (contentItem != null) {
|
||||
//Content.Editor-Page
|
||||
//Content-Page.Edit
|
||||
displaying.ShapeMetadata.Alternates.Add("Content_Edit__" + contentItem.ContentType);
|
||||
}
|
||||
});
|
||||
|
@@ -12,7 +12,6 @@ using Orchard.Settings;
|
||||
using Orchard.UI;
|
||||
using Orchard.UI.Resources;
|
||||
using Orchard.UI.Zones;
|
||||
using Orchard.Utility.Extensions;
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
@@ -75,9 +74,10 @@ namespace Orchard.Core.Shapes {
|
||||
// 'List' shapes start with several empty collections
|
||||
builder.Describe("List")
|
||||
.OnCreated(created => {
|
||||
created.Shape.Tag = "ul";
|
||||
created.Shape.ItemClasses = new List<string>();
|
||||
created.Shape.ItemAttributes = new Dictionary<string, string>();
|
||||
var list = created.Shape;
|
||||
list.Tag = "ul";
|
||||
list.ItemClasses = new List<string>();
|
||||
list.ItemAttributes = new Dictionary<string, string>();
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -8,7 +8,6 @@ namespace Orchard.Widgets {
|
||||
builder.Describe("Widget")
|
||||
.Configure(descriptor => {
|
||||
// todo: have "alternates" for chrome
|
||||
// todo: (heskew) something...this still doesn't feel right
|
||||
descriptor.Wrappers.Add("Widget_Wrapper");
|
||||
descriptor.Wrappers.Add("Widget_ControlWrapper");
|
||||
})
|
||||
|
Reference in New Issue
Block a user