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, does anyone know if it's possible to render a grid property in a Multinode Tree Picker? I'm trying to do it within a partial view.
I get this error:'System.Web.HtmlString' does not contain a definition for 'sections'
'System.Web.HtmlString' does not contain a definition for 'sections'
@using ContentModels = Umbraco.Web.PublishedModels;
var mntpLinks = Model.Value<IEnumerable<IPublishedContent>>("mntpLinks");
@foreach (var item in mntpLinks)
@if (item.Value("copy") != null)
<a class="btn-secondary" href="@item.Url">Read more</a>
I think you have an extra closing bracket in there.
Thanks but that's not the issue. I have a lot more code than above, I just removed some so it's easier to read on the forum.
Maybe this works
@Html.GetGridHtml(item, "copy", "gridTemplateName")
I thought I'd tried that but obviously not. That's worked perfectly. Thanks for your help
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted