Copied to clipboard

Flag this post as spam?

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


  • Pavel Tůma 2 posts 82 karma points
    Apr 28, 2020 @ 12:25
    Pavel Tůma
    0

    Get property of specific DocumentType

    Hi,

    is there a way to get a content of specific property of one Document Type in custom api?

    Edit: If the property is content of RichTextEditor is it possible to get this content as html in C# api?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 28, 2020 @ 16:27
    Alex Skrypnyk
    100

    Hi Pavel,

    Yes, this is possible.

    Use content service for getting the content from the database - https://our.umbraco.com/documentation/reference/management/services/contentservice/

    Use UmbracoHelper for getting the content from published data - https://our.umbraco.com/documentation/reference/querying/umbracohelper/

    Thanks,

    Alex

  • Pavel Tůma 2 posts 82 karma points
    Apr 28, 2020 @ 20:32
    Pavel Tůma
    0

    Thanks it works

  • 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