mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixing widget RenderTitle import
This commit is contained in:
@@ -83,6 +83,11 @@ namespace Orchard.Widgets.Drivers {
|
||||
context.ImportAttribute(part.PartDefinition.Name, "Title", x => part.Title = x);
|
||||
context.ImportAttribute(part.PartDefinition.Name, "Position", x => part.Position = x);
|
||||
context.ImportAttribute(part.PartDefinition.Name, "Zone", x => part.Zone = x);
|
||||
context.ImportAttribute(part.PartDefinition.Name, "RenderTitle", x => {
|
||||
if (!string.IsNullOrWhiteSpace(x)) {
|
||||
part.RenderTitle = Convert.ToBoolean(x);
|
||||
}
|
||||
});
|
||||
context.ImportAttribute(part.PartDefinition.Name, "Name", x => part.Name = x);
|
||||
context.ImportAttribute(part.PartDefinition.Name, "Title", x => {
|
||||
if (!String.IsNullOrWhiteSpace(x))
|
||||
@@ -100,4 +105,4 @@ namespace Orchard.Widgets.Drivers {
|
||||
context.Element(part.PartDefinition.Name).SetAttributeValue("CssClasses", part.CssClasses);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user