Copied to clipboard

Flag this post as spam?

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


  • Dibs 160 posts 774 karma points
    May 09, 2016 @ 13:18
    Dibs
    0

    Disable a document type from root

    Dear Umbraco Team

    I have created a base document type with common properties to be used by child document types from the base. In Umbraco 7.4.3 when i create a content node, the base document type can be created at the root. How can this be disabled ?

    Yes - allow content of this type in root is unchecked. All document types will be child document types from the base document type.

    Thanks Dibs

  • Dennis Adolfi 1067 posts 6326 karma points MVP c-trib
    May 09, 2016 @ 13:42
    Dennis Adolfi
    0

    Hello Dibs.

    If the "allow content of this type" checkbox is unchecked then this node should not be albe to create at root. Howerver, i tried this on a clean Umbraco 7.4.3 install and you are correct, i can still create a root node anyway, even if i dont tick this checkbox.

    You should report it to http://issues.umbraco.org/issues. Remember to write which version (7.4.3) so that anyone who is willing to help can fix it easier.

    All the best! / Dennis

  • Dibs 160 posts 774 karma points
    May 09, 2016 @ 15:22
    Dibs
    101

    Cheers Dennis

    I have raised U4-8424 Unable to disable a document type from root on issues site

    Thanks Dibs

  • Dennis Adolfi 1067 posts 6326 karma points MVP c-trib
    May 09, 2016 @ 15:54
    Dennis Adolfi
    0

    Awesome Dibs! You can probably fix it for yourself temporarily by creating a startup class and then hook a event to the ContentService.Create event, if this is critical. Otherwise I think this will probably be prioritized by Umbraco, so it's probably solved in the next upgrade.

    Some info about ApplicationStartup event: https://our.umbraco.org/documentation/reference/events/application-startup

    Have a great day!!

  • Dibs 160 posts 774 karma points
    May 10, 2016 @ 08:19
    Dibs
    1

    no worries Dennis, its not critical.

    Umbraco top tem are on the case to fix for v8.

    http://issues.umbraco.org/issue/U4-8424

  • Dennis Adolfi 1067 posts 6326 karma points MVP c-trib
    May 10, 2016 @ 08:32
    Dennis Adolfi
    0

    That sounds great Dibs!!! :)

Please Sign in or register to post replies

Write your reply to:

Draft