From 5bd2066bf3f42daa3ed60df893a775ae157518d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sun, 4 Oct 2015 01:41:12 +0200 Subject: [PATCH] Fixing widget RenderTitle import --- .../Modules/Orchard.Widgets/Drivers/WidgetPartDriver.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Widgets/Drivers/WidgetPartDriver.cs b/src/Orchard.Web/Modules/Orchard.Widgets/Drivers/WidgetPartDriver.cs index 34e4eb9f8..098944941 100644 --- a/src/Orchard.Web/Modules/Orchard.Widgets/Drivers/WidgetPartDriver.cs +++ b/src/Orchard.Web/Modules/Orchard.Widgets/Drivers/WidgetPartDriver.cs @@ -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); } } -} \ No newline at end of file +}