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...
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.
Continue discussion
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...
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.