Copied to clipboard

Flag this post as spam?

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


  • SC Digital Services Team 104 posts 171 karma points
    Dec 04, 2012 @ 13:19
    SC Digital Services Team
    0

    Contour 3 not rendering customised view

    I've followed the video on the blog - http://umbraco.com/follow-us/blog-archive/2012/11/8/contour-30-features-full-control-over-form-markup.aspx - and have customised Form.cshtml to add a new class and render the page name with a h2 tag (previously it was a h4).

    However, this doesn't seem to make a difference - when I view the page with the form, that field still renders with a h4.

    I'm using the form picker datatype and passing the GUID to a macro in my master template like this...

    <umbraco:Macro ID="ServiceAreaContentContourFormMacro" runat="server" Alias="umbracoContour.RenderForm" FormGuid="[#insertAForm]" />

    Debugging the page does show some other errors, but I'm not sure they are related:

    Am I missing something?

  • Comment author was deleted

    Dec 04, 2012 @ 13:55

    Hey,

    Looks like you are using the usercontrol macro, you need to use the razor scripting file one, then you should be able to see the changes

  • SC Digital Services Team 104 posts 171 karma points
    Dec 04, 2012 @ 14:01
    SC Digital Services Team
    0

    Ah, rookie mistake, sorry!

    Using the "umbracoContour.RazorRenderForm" macro now & it works as expected.  Thanks for your help, h5yr!

  • Comment author was deleted

    Dec 04, 2012 @ 14:32

    No prob, glad I could help :)

Please Sign in or register to post replies

Write your reply to:

Draft