Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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.
Umbraco.Content(id)
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.
Thanks Rhys
Yes i had try the second way- getting from the root content and selecting the item by its alias name.
Regards T
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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.
Thanks Rhys
Yes i had try the second way- getting from the root content and selecting the item by its alias name.
Regards T
is working on a reply...