Copied to clipboard

Flag this post as spam?

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


  • Zac 239 posts 541 karma points
    Mar 05, 2014 @ 14:05
    Zac
    0

    Multi Site Page Not Found Handler v7

    Does this currently work with v7 (or is there source code in development that does this)?  

    If not, I'll probably create it shortly and will release the source code

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 05, 2014 @ 14:20
    Lee Kelleher
    0

    Hi Summit,

    It should still work as before - as I believe the ContentFinder/NotFoundHandler logic is the same as v6.

    Personally I've written a version using the newer ContentFinder interface, which I'll aim to add to the next uComponents (once it is out of it's current limbo state).

    Cheers,
    - Lee

  • Zac 239 posts 541 karma points
    Mar 05, 2014 @ 14:51
    Zac
    0

    Thanks Lee.

    Would you be willing to share your new ContentFinder implementation?  I'd love to check it out.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 05, 2014 @ 14:59
    Lee Kelleher
    100

    Hi Summit,

    Here's the gist: https://gist.github.com/leekelleher/9367600

    You'd need to register the ContentFinder in the app start-up:

    public class MyApplication : ApplicationEventHandler
    {
        protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            ContentFinderResolver.Current.InsertTypeBefore<ContentFinderByNotFoundHandlers, uComponents.ContentFinders.PageNotFoundContentFinder>();
            base.ApplicationStarting(umbracoApplication, applicationContext);
        }
    }
    

    Hope this helps?

    Cheers,
    - Lee

  • Zac 239 posts 541 karma points
    Mar 05, 2014 @ 15:17
    Zac
    0

    Lee -

    This is great.

    Thanks a bunch!

    Zac

Please Sign in or register to post replies

Write your reply to:

Draft