Copied to clipboard

Flag this post as spam?

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


  • Kevin Lawrence 183 posts 350 karma points
    Sep 18, 2014 @ 10:08
    Kevin Lawrence
    0

    Customising the error page

    Using Contour 3.0.21 and MVC rendering.

    Is there a way to customise the error view?

    Thanks

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Sep 18, 2014 @ 11:05
    Alex Skrypnyk
    0

    Hi Kevin,

    What errors do you want to intercept ? Umbraco has error handling module, you can set node ids for each error code.

    http://our.umbraco.org/wiki/install-and-setup/configuring-404-pages

  • Kevin Lawrence 183 posts 350 karma points
    Sep 18, 2014 @ 11:11
    Kevin Lawrence
    0

    HI Alex

    When Contour errors instead of the form you get the message exception text. It's not an general Umbraco error it's just inside the Contour form.

    Thanks

    Kev

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Sep 18, 2014 @ 11:41
    Alex Skrypnyk
    0

    Is it application error ? You can intercept exceptions on the application level.

    Thanks

  • Kevin Lawrence 183 posts 350 karma points
    Sep 18, 2014 @ 12:27
    Kevin Lawrence
    0

    No it's not an application level error, Contour catches the errors and spits out the error message in the view.

  • Kevin Lawrence 183 posts 350 karma points
    Sep 18, 2014 @ 13:07
    Kevin Lawrence
    0

    Just to elaborate, this is what's used to render a contour form:

    @Html.RenderMvcAction(action, controller, formGuid, formtoken, (umbraco.MacroEngines.DynamicNode)Model, (System.Dynamic.DynamicObject)Parameter);

    This swallows any exceptions and then just outputs them, I guess I could do my own RenderMvcAction method, I'm guessing actually that might be the only way.

    Thanks

    Kev

  • 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