Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I'm using Grid to render my content, and there was a useful feature Inherit with ancestors, just code like this :
@Model.Value("inheritTitle", fallback: Fallback.ToAncestors)
but when I try to use this feature with Grid, I have no idea, render my Grid like this:
@Html.GetGridHtml(Model, "grid")
How do I use this feature with Grid, anyone has idea?
regards
Cary
Hello,
@using MyCode.Umbraco.Web.Extensions; @inherits UmbracoViewPage<ContentPage> @{ Layout = "BasePage.cshtml"; } <div> @Html.GetFallbackGridHtml(Model, ContentPage.GetModelPropertyType(c => c.Body).Alias, "site") </div>
Hi,
thanks for your reply, but I need more information,
where I can find MyCode.Umbraco.Web.Extensions;, I tried Umbraco.Web.Extensions,But It's failed.
MyCode.Umbraco.Web.Extensions;
Umbraco.Web.Extensions
I can't get a function like GetFallbackGridHtml
GetFallbackGridHtml
would you please give more Information about the above two things?
I got this doc:
https://jvantroyen.blogspot.com/2020/04/umbraco-8-language-fallback-for-grid.html
Another Info
I want use this function in partial view, how to?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Inherit Fallback With Grid
Hi all,
I'm using Grid to render my content, and there was a useful feature Inherit with ancestors, just code like this :
but when I try to use this feature with Grid, I have no idea, render my Grid like this:
How do I use this feature with Grid, anyone has idea?
regards
Cary
Hello,
Hi,
thanks for your reply, but I need more information,
where I can find
MyCode.Umbraco.Web.Extensions;
, I triedUmbraco.Web.Extensions
,But It's failed.I can't get a function like
GetFallbackGridHtml
would you please give more Information about the above two things?
regards
Cary
I got this doc:
https://jvantroyen.blogspot.com/2020/04/umbraco-8-language-fallback-for-grid.html
Another Info
I want use this function in partial view, how to?
is working on a reply...