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 a partial view which is rendering an element of a Block Grid and have a need to get the content node for the root of the site - how best can this be achieved?
Thanks
Andy
Hi Andy,
You should be able to use Umbraco.ContentAtRoot()
Umbraco.ContentAtRoot()
That was obvious! Thanks for the help.
Is there a way to get the content of the page containing the block grid?
you can use Umbraco.Content() and pass in the guid or Id of the page
Umbraco.Content()
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Getting root node from Block Grid Editor
Hi,
I have a partial view which is rendering an element of a Block Grid and have a need to get the content node for the root of the site - how best can this be achieved?
Thanks
Andy
Hi Andy,
You should be able to use
Umbraco.ContentAtRoot()
That was obvious! Thanks for the help.
Is there a way to get the content of the page containing the block grid?
you can use
Umbraco.Content()
and pass in the guid or Id of the pageis working on a reply...