Files
Orchard/src/Orchard.Web/Modules/Orchard.DesignerTools/Services/ShapeTracingFactory.cs

21 lines
746 B
C#
Raw Normal View History

using Orchard.DisplayManagement.Implementation;
using Orchard.Environment.Extensions;
namespace Orchard.DesignerTools.Services {
[OrchardFeature("Orchard.DesignerTools")]
public class ShapeTracingFactory : IShapeFactoryEvents {
public void Creating(ShapeCreatingContext context) {
}
public void Created(ShapeCreatedContext context) {
if (context.ShapeType != "Layout"
&& context.ShapeType != "DocumentZone"
&& context.ShapeType != "PlaceChildContent"
&& context.ShapeType != "ContentZone"
)
{
context.Shape.Metadata.Wrappers.Add("ShapeTracing_Wrapper");
}
}
}
}