Copied to clipboard

Flag this post as spam?

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


  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Aug 25, 2016 @ 09:22
    Michaël Vanbrabandt
    0

    Get all allowed root Document types in backoffice using the API

    Hi,

    I am trying to get a list of allowed DocumentTypes at root using the ContentTypeService in my backoffice API.

    But there is no method available to do this...

    /Michaël

  • David Peck 690 posts 1896 karma points c-trib
    Aug 25, 2016 @ 10:48
    David Peck
    100

    How about?:

    var allowedAtRoot = Services.ContentTypeService.GetAllContentTypes().Where(x => x.AllowedAsRoot);
    
  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Aug 25, 2016 @ 11:00
    Michaël Vanbrabandt
    0

    Aaaah ok I missed the part that id[] is not required.

    Thanks!

    /Michaël

  • David Peck 690 posts 1896 karma points c-trib
    Aug 25, 2016 @ 11:04
    David Peck
    0

    No worries.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies