Adding an exporting handler for localization part.

Changing the name of the exported tag for the text fields.

--HG--
branch : dev
This commit is contained in:
Suha Can
2011-03-14 17:36:33 -07:00
parent 185166bffa
commit 4a1a995952
3 changed files with 17 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ namespace Orchard.Core.Common.Drivers {
}
protected override void Exporting(ContentPart part, TextField field, ExportContentContext context) {
context.Element(part.PartDefinition.Name).SetAttributeValue("Text", field.Value);
context.Element(field.FieldDefinition.Name).SetAttributeValue("Text", field.Value);
}
}
}