Rendering a field using @CurrentPage (dynamically)
The UmbracoHelper method provides many useful parameters to change how the value is rendered. If you however simply want to render value "as-is" you can use the @CurrentPage property of the view. The difference between @CurrentPage and @Model.Content is that @CurrentPage is the dynamic representation of the model which exposes many dynamic features for querying. For example, to render a field you simply use this syntax:
When you are using @CurrentPage.Site(), then you are travling up to the root of your site. So right now with your code, you are looking at the root node for a property with the alias of innehall.
So @CurrentPage is refer to the page that you are viewing in the browser.
Can't get RTE to my site
For some reason I can't get my RTE to display on my information page
The page is empty. I want the RTE to display on the page. What am I doing wrong?
Hi Johan,
Just try use this code
instead of
Rendering a field using @CurrentPage (dynamically) The UmbracoHelper method provides many useful parameters to change how the value is rendered. If you however simply want to render value "as-is" you can use the @CurrentPage property of the view. The difference between @CurrentPage and @Model.Content is that @CurrentPage is the dynamic representation of the model which exposes many dynamic features for querying. For example, to render a field you simply use this syntax:
Try to see this documentation https://our.umbraco.org/documentation/Reference/Templating/Mvc/views
When you are using @CurrentPage.Site(), then you are travling up to the root of your site. So right now with your code, you are looking at the root node for a property with the alias of innehall.
So @CurrentPage is refer to the page that you are viewing in the browser.
Hope this helps,
/Dennis
Thank you.
is working on a reply...