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've started using the DTGE in V8 and I had noticed that any modules that uses either Content Picker or Media Picker seems to be returning back as null when it's in this file. I'm using Models Builder for this as well. Any Idea?
Thanks
Hi,
This works fine for us on v8.1.4
We have been trying this code. Slightly different than yours.
IPublishedElement content = DocTypeGridEditorHelper.ConvertValueToContent(GridData.Id, GridData.ContentTypeAlias, GridData.Value.ToString()); string view = string.Format("~/Views/Partials/Grid/CustomEditors/{0}.cshtml", control.editor.alias); if (content != null) { @Html.Partial(view, content) }
Also cshtml file have (note IPublishedElement instead of iPublishedContent):- @inherits Umbraco.Web.Mvc.UmbracoViewPage
Hope this helps to solve your issue.
Cheers,
Shaishav
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
DTGE in V8 with ContentPicker / Media Picker
Hi All,
I've started using the DTGE in V8 and I had noticed that any modules that uses either Content Picker or Media Picker seems to be returning back as null when it's in this file. I'm using Models Builder for this as well. Any Idea?
Thanks
Hi,
This works fine for us on v8.1.4
We have been trying this code. Slightly different than yours.
Also cshtml file have (note IPublishedElement instead of iPublishedContent):- @inherits Umbraco.Web.Mvc.UmbracoViewPage
Hope this helps to solve your issue.
Cheers,
Shaishav
is working on a reply...