Copied to clipboard

Flag this post as spam?

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


  • Ian Dunkerly 5 posts 26 karma points
    Feb 05, 2013 @ 00:59
    Ian Dunkerly
    1

    Possible bugs with content rendering in V6 - MVC Views

    I am hitting a couple of rendering issues in V6. I have been converting the site to use MVC.

    I have a homepage document type with a rich text field defined called "footer", this field only exists in the home page data type which is also the content root.

    Issue 1

    In the template for the page I have the following:

    @Model.Content.GetPropertyValue("footer", true)

    When viewing the footer on the home page the content renders correctly, for all other pages in the site the content renders as encoded html (e.g. <p> renders and <&lt; etc)

    I would expect it to be consistent on all pages.

    Issue 2

    Within the footer are is a link to an internal page, using @Model.Content.GetPropertyValue("footer", true) the link is correctly converted to the friendly url name if however I use:

    @Umbraco.Field("footer", recursive: true, encoding: RenderFieldEncodingType.Unchanged)

    The link is rendered as : href="/{localLink:1132}"

  • Ian Dunkerly 5 posts 26 karma points
    Feb 05, 2013 @ 01:03
    Ian Dunkerly
    0

    For the second issue - the url fails to be parsed correctly when the recursive: true parameter is supplied.

    [Attempting to edit the original post resulted in an xslt error]

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Feb 05, 2013 @ 12:16
    Jeroen Breuer
    0

    Issues can be reported here: http://issues.umbraco.org/dashboard#newissue=yes

    Jeroen

  • 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