Copied to clipboard

Flag this post as spam?

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


  • Dimitri Troncquo 4 posts 26 karma points
    Jul 05, 2018 @ 13:48
    Dimitri Troncquo
    0

    Set up custom error pages with content from Umbraco

    Setting up custom error pages for Umbraco can be a bit of a pain sometimes. Especially if you want the content to be editable through the CMS, and use the same templates you use for your content pages.

    I came up with a nifty solution and thought I'd share.

    You can find the full explanation and a sample project here: https://github.com/dimi3tron/Umbraco.CustomErrors

    The project demonstrates how you can set up custom error pages in a few easy steps. If possible the content and templates for these pages will be loaded from Umbraco. Of course there is also a fallback scenario for those cases when an error occurs in Umbraco itself.

    Features:

    • Configure content of the error pages in Umbraco
    • Configure templates of the error pages in Umbraco
    • Returns appropriate http status codes
    • Works in multi domain setup
    • Handle 404's the easy way (no more messing with custom content finders)
Please Sign in or register to post replies

Write your reply to:

Draft