Copied to clipboard

Flag this post as spam?

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


  • Johan 95 posts 264 karma points
    Nov 26, 2015 @ 12:34
    Johan
    0

    Can't get RTE to my site

    For some reason I can't get my RTE to display on my information page

    enter image description here enter image description here enter image description here enter image description here

    The page is empty. I want the RTE to display on the page. What am I doing wrong?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 26, 2015 @ 12:54
    Dennis Aaen
    100

    Hi Johan,

    Just try use this code

    @CurrentPage.innehall
    

    instead of

    @Information.innehall
    

    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:

    @CurrentPage.bodyContent
    

    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

  • Johan 95 posts 264 karma points
    Nov 26, 2015 @ 13:16
    Johan
    0

    Thank you.

  • 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.

Please Sign in or register to post replies