Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Jeric Yuen 334 posts 508 karma points
    Sep 24, 2019 @ 09:57
    Jeric Yuen

    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?


    enter image description here

  • Shaishav Karnani from 348 posts 1629 karma points
    Sep 24, 2019 @ 10:12
    Shaishav Karnani from


    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.



Please Sign in or register to post replies

Write your reply to: