Copied to clipboard

Flag this post as spam?

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


  • Sam Lombardo 5 posts 94 karma points
    Feb 18, 2016 @ 02:50
    Sam Lombardo
    0

    Partial View Macro not rendering properly

    Hello, my umbraco version is 7.4.1

    I am having problems getting a contact form to render properly in both the rte and also on the content page.

    I have the following partial view set up:

    enter image description here

    From there I created a Partial View Macro File: enter image description here

    Which created the following macro: enter image description here

    Here is where the problems begin. When I create a new contact page, I then add the macro in the rte and and it is rendered as follows in the rte: enter image description here

    Issue: This is what it looks like on the content page:

    enter image description here

    and here is the html that was rendered: enter image description here

    Here we can see that no mvc controls are rendered.

    Note: not sure if it makes a difference, but I am rendering the Grid by calling: @CurrentPage.GetGridHtml("content", "AweSamNet")

    What the heck am I doing wrong?

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Feb 18, 2016 @ 06:33
    Sebastiaan Janssen
    0

    Unfortunately it is not possible to use a macro in the rich text editor in the grid at the moment ( http://issues.umbraco.org/issue/U4-6206 ). You will need to insert a macro in the grid under your rich text editor, so not IN the rich text editor.

  • 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