Ramlakhan saini
12/24/2024, 8:46 AMJeroen Visschers (iO)
12/24/2024, 8:56 AMRamlakhan saini
12/24/2024, 9:02 AM@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.RichTextBlockItem>
@{
var form = Model?.Content?.Value<string>("form");
var theme = Model?.Content?.Value<string>("theme");
}
@if (string.IsNullOrWhiteSpace(form))
{
<h1>No form found!</h1>
}
else
{
@(await Component.InvokeAsync("RenderForm", new { formId = Guid.Parse(form), theme = theme, includeScripts = true }))
}
And i am rendering it to the home page like this
<partial name="/Views/Partials/RichText/Components/InsertFormsAndThems.cshtml" model="@(Model?.Value<RichTextBlockItem>("description"))" />
But now the partial view hits two times. The second time it gets a null model that throws an error and does not show any form.
here is the some images of home page
https://screenrec.com/share/C0vUmDfeXx
https://screenrec.com/share/AlCky6qhpoJeroen Visschers (iO)
12/24/2024, 9:46 AMRamlakhan saini
12/24/2024, 10:56 AMRamlakhan saini
12/26/2024, 6:36 AMSander L
12/29/2024, 8:43 AMRamlakhan saini
12/31/2024, 6:05 AM