Copied to clipboard

Flag this post as spam?

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


  • Thomas 43 posts 123 karma points
    Apr 24, 2019 @ 11:42
    Thomas
    0

    How to get Document content that is not related to current page document content

    Hi,

    I have try to get document content that is not related to current page document content.

    first, i just get the root content and form this i have try to get which document content i want by using the document type alias.

    Is there any other way to get the document content?

    Thanks Thomas

  • Rhys Hamilton 140 posts 942 karma points
    Apr 24, 2019 @ 13:49
    Rhys Hamilton
    0

    There's a number of ways to do this, such as passing the node id and using Umbraco.Content(id), if you don't want to iterate through the nodes.

    Personally though, if you're looking for something dynamic, I'd stick with getting the root content and selecting the item by its document type alias.

  • Thomas 43 posts 123 karma points
    Apr 25, 2019 @ 05:31
    Thomas
    0

    Thanks Rhys

    Yes i had try the second way- getting from the root content and selecting the item by its alias name.

    Regards T

Please Sign in or register to post replies

Write your reply to:

Draft