From b0428606453dcfe3943c5d1209fa0825d78a1512 Mon Sep 17 00:00:00 2001 From: Louis DeJardin Date: Fri, 10 Dec 2010 16:41:49 -0800 Subject: [PATCH] Correcting comment in code Also a correction to the previous commit comment, patterns are: ShapeName ShapeName__FieldName ShapeName__PartName ShapeName__PartName__FieldName The most specific, and first to match, are the ones later in the list --HG-- branch : dev --- src/Orchard/ContentManagement/Drivers/ContentFieldDriver.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Orchard/ContentManagement/Drivers/ContentFieldDriver.cs b/src/Orchard/ContentManagement/Drivers/ContentFieldDriver.cs index bec6c3743..84f2edba7 100644 --- a/src/Orchard/ContentManagement/Drivers/ContentFieldDriver.cs +++ b/src/Orchard/ContentManagement/Drivers/ContentFieldDriver.cs @@ -71,9 +71,9 @@ namespace Orchard.ContentManagement.Drivers { private object AddAlternates(dynamic shape, string differentiator) { // automatically add shape alternates for shapes added by fields - // [ShapeType__FieldName] for ShapeType-FieldName templates - // [ShapeType__Part] for ShapeType-Part templates - // [ShapeType__Part_FieldName] for ShapeType-FieldName.Part templates + // [ShapeType__FieldName] for ShapeType-FieldName.cshtml templates + // [ShapeType__PartName] for ShapeType-PartName.cshtml templates + // [ShapeType__PartName__FieldName] for ShapeType-PartName-FieldName.cshtml templates // for fields on dynamic parts the part name is the same as the content type name // ex. Fields/Common.Text-Something.FirstName