Copied to clipboard

Flag this post as spam?

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


  • Matt 12 posts 98 karma points
    Jul 15, 2015 @ 23:07
    Matt
    0

    Render Page Content

    If some one could point me in the right direction

    I have set up a page template in Umb7.2 but when the page renders content from the RTE it spits out what looks like json script around the text

    I am using either of these tags with the same result

        @Html.Raw(@Umbraco.Field("content"))
    
         @Html.Raw(Model.Content.GetPropertyValue("content"))
    

    This is the output on the page....

    { "name": "1 column layout", "sections": [ { "grid": 12, "rows": [ { "name": "Headline", "areas": [ { "grid": 12, "editors": [ "headline" ], "controls": [ { "value": " Evolving from Asia Pacific's leading international technology company offering a wide range of digital solutions that optimise the entire customer lifecycle.

    \n

    With offices in the UK, store and make available key information regarding the status of the finance market across the globe.

    ", "editor": { "name": "Rich text editor", "alias": "rte", "view": "rte", "render": null, "icon": "icon-article", "config": {} } } ] }

    If someone could point out what I may be doiong wrong or what I need to modify to get it rendering would be greatly appriciated

  • Matt 12 posts 98 karma points
    Jul 15, 2015 @ 23:53
    Matt
    0

    Ok solved it I was using the GridRte datatype and not the normal RTE datatype in my document

Please Sign in or register to post replies

Write your reply to:

Draft