Copied to clipboard

Flag this post as spam?

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


  • Tim 1193 posts 2655 karma points c-trib
    Jan 25, 2013 @ 10:20
    Tim
    0

    Long field names cause the Razor Form Rendering Macro to fail

    Hiya,

    I've spotted an issue that if you have a long field caption, you get an error stating that the file path is too long, must be betweeen xx and xx characters and the form doesn't render, when using the Razor rendering macro. If you switch to the webforms rendering macro, it works fine. This is using the latest version of Contour from the nightlies.

    I've debugged as much as I can, and it looks like the call to @Html.Partial(FieldViewResolver.GetFieldView(Model.FormId, f.FieldTypeName, f.Caption), f) in the rendering macro is the culprit, specifically the FieldViewResolver I think. I guess it's creating some kind of MVC style path based on the field caption maybe?

    Can this be fixed? As a workaround, we're using the webforms renderer, but we'd ideally like to use the Razor one so that we can control the markup.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 25, 2013 @ 10:34
    Tim Geyssens
    0

    Thanks for reporting, will look into it 

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 25, 2013 @ 12:09
    Tim Geyssens
    0

    Looking into it now, added issue to the tracker http://issues.umbraco.org/issue/CON-224

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 25, 2013 @ 12:18
    Tim Geyssens
    100

    Fixed in 3.0.7 WIP, if you download the upgrade http://nightly.umbraco.org/Umbraco%20Contour/3.0.7%20WIP/ archive and you'll just need to update the umbraco.forms.mvc assembly to make it work

  • Tim 1193 posts 2655 karma points c-trib
    Jan 25, 2013 @ 12:24
    Tim
    0

    Nice one, thanks Tim, that was super fast :)

  • 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