This project has moved and is read-only. For the latest updates, please go here.

Please Add Export/Import for Meta Driver - Code Included

May 18, 2012 at 9:22 PM

Would you please add Export/Import functionality for the Meta Driver?  Here is the code I am currently using to accomplish this but would be better in source:

protected override void Exporting(MetaPart part, ExportContentContext context) {
    context.Element(part.PartDefinition.Name).SetAttributeValue("Keywords", part.Keywords);
    context.Element(part.PartDefinition.Name).SetAttributeValue("Description", part.Description);

protected override void Importing(MetaPart part, ImportContentContext context) {
    var keywords = context.Attribute(part.PartDefinition.Name, "Keywords");
    if (!String.IsNullOrWhiteSpace(keywords)) {
        part.Keywords = keywords;
    var description = context.Attribute(part.PartDefinition.Name, "Description");
    if (!String.IsNullOrWhiteSpace(description)) {
        part.Description = description;


May 19, 2012 at 8:15 AM

Sure. Can you open a bug and/or make a pull request?