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
This commit is contained in:
Louis DeJardin
2010-12-10 16:41:49 -08:00
parent 4e6d9566bf
commit b042860645

View File

@@ -71,9 +71,9 @@ namespace Orchard.ContentManagement.Drivers {
private object AddAlternates(dynamic shape, string differentiator) { private object AddAlternates(dynamic shape, string differentiator) {
// automatically add shape alternates for shapes added by fields // automatically add shape alternates for shapes added by fields
// [ShapeType__FieldName] for ShapeType-FieldName templates // [ShapeType__FieldName] for ShapeType-FieldName.cshtml templates
// [ShapeType__Part] for ShapeType-Part templates // [ShapeType__PartName] for ShapeType-PartName.cshtml templates
// [ShapeType__Part_FieldName] for ShapeType-FieldName.Part 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 // for fields on dynamic parts the part name is the same as the content type name
// ex. Fields/Common.Text-Something.FirstName // ex. Fields/Common.Text-Something.FirstName