Copied to clipboard

Flag this post as spam?

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


  • Ahmed 10 posts 111 karma points
    Jan 21, 2020 @ 21:58
    Ahmed
    0

    Can't use my new type !!

    When I choose my newly created type it gives me this problem

    enter image description here

    "There are no allowed document types available for creating content here. You must enable these in Document Types within the Settings section, by editing the Allowed child node types under Permissions."

    enter image description here

    then I tried to make my Editor Is an Element type set to true..

    But I got this Error System.InvalidOperationException: Model Umbraco.Web.PublishedModels.ColoredPragraphEditor expects argument of type Umbraco.Core.Models.PublishedContent.IPublishedContent, but got Our.Umbraco.DocTypeGridEditor.Models.DetachedPublishedElement.

    What can i do ?!!

  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    Jan 22, 2020 @ 09:23
    Nik
    0

    Hi Ahmed,

    {edit} Nope what I wrote here originally was wrong, miss read your question! sorry.

    Nik

  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    Jan 22, 2020 @ 09:25
    Nik
    0

    New idea-

    Have you remembered to rebuild your Models via Models builder? :-)

  • Ahmed 10 posts 111 karma points
    Jan 23, 2020 @ 09:34
    Ahmed
    0

    I did, didn't work for me.

  • jtemperv 6 posts 26 karma points
    Jan 24, 2020 @ 17:11
    jtemperv
    0

    Starting on Umbraco, we have exactly the same issue. Could this be related to the changes to the ModelBuilder in v8.5.2 (embedded)?

  • Ahmed 10 posts 111 karma points
    Jan 24, 2020 @ 22:17
    Ahmed
    101

    My problem is solved.

    In the view which represents my new Type, I was inheriting from @inherits UmbracoViewPage

    When I changed it to @inherits UmbracoViewPage< Umbraco.Web.PublishedModels.Test> it worked "Test" is the name of the new Data Type.

    Ahmed.

Please Sign in or register to post replies

Write your reply to:

Draft