Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>
Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>
Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>
Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>
Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>
Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>
Error executing template "Designs/Tefcold/Paragraph/basic_Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_a67490f5a78847c294833fcd643c4279.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\Paragraph\Basic_Banner.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @using Dynamicweb.Frontend;
2 @inherits Tefcold.Web.CustomCode.Razor.TefcoldViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel>
3 @{
4 string TextColor = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextColor").SelectedValue : "banner-light";;
5 string TextPosition = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue) ? Model.Item.GetValue<ListViewModel>("TextPosition").SelectedValue : "middle-center";
6 string BackgroundImage = Model.Item.GetFile("Image") != null ? " style=\"background-image:url(" + Model.Item.GetFile("Image").Path + ")\"" : "";
7 }
8 <section class="basic_banner basic_@TextColor">
9 @if (Model.Item.GetFile("Image") != null)
10 {
11 <picture>
12 @if (Model.Item.GetFile("ImageMobile") != null)
13 {
14 <source media="(max-width: 575.98pxpx)" srcset="@Model.Item.GetFile("ImageMobile").Path">
15 }
16 @if (Model.Item.GetFile("ImageMobile") != null || Model.Item.GetFile("ImageTablet") != null)
17 {
18 <source media="(min-width: 576px) and (max-width: 959.98px)" srcset="@(Model.Item.GetFile("ImageTablet") != null ? Model.Item.GetFile("ImageTablet").Path : Model.Item.GetFile("ImageMobile").Path)">
19 }
20 <source media="(min-width: 960px)" srcset="@Model.Item.GetFile("Image").Path">
21 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" />
22 </picture>
23 }
24 <div class="basic_banner-overlay">
25 <div class="basic_banner-wrap @TextPosition">
26 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text")))
27 {
28 <div class="basic_banner-content">
29 @Model.Item.GetString("Text")
30 </div>
31 }
32 </div>
33 </div>
34 </section>