This project is read-only.


Display filter for empty layout zone does not work.


Display filter does not work for empty layout zones. I create a template (by Orchard.Templates) to render Layout shape for specific URL. I write the following code to render any zone. (The Model is Layout shape)
{{ Model.ZoneName | Display }}
The above code works for any zone that have at least one widget but for empty zones such as Messages or FooterQuadFourth causes the following error (I have no widgets in these zones):
Object of type 'System.String' cannot be converted to type 'Lombiq.LiquidMarkup.Models.StaticShape'.

Line 32: 
Line 33:             var liquidTemplate = _cacheService.Get(liquidSource, () => Template.Parse(liquidSource));
__Line 34:             return liquidTemplate.Render(new RenderParameters__
Line 35:             {
Line 36:                 LocalVariables = Hash.FromAnonymousObject(new { Model = templateModel }),

Source File: d:\Development\Dena\Orchard.Source.1.9\src\Orchard.Web\Modules\Lombiq.LiquidMarkup\Services\LiquidTemplateService.cs    Line: 34 
Can you help me please?
Closed Jun 4, 2015 at 3:29 PM by Piedone
Thanks, fixed.