Copied to clipboard

Flag this post as spam?

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


  • Vincent Ashby-Smith 67 posts 196 karma points
    Jun 11, 2014 @ 16:43
    Vincent Ashby-Smith
    0

    Best way to create custom non Umbraco page

    Hi all, i'm wondering what the best way is to create a non umbraco page? Basically I want to run a bit of code to check the browser version and if say the user is running IE7 or less I want to redirect the user to a view instructing the user that the website wont run properly and they should upgrade.

    I don't want to create an actual page in Umbraco if possible, just a standalone view. I also want to use a different layout compared to all my other Umbraco pages.

  • Amir Khan 1287 posts 2744 karma points
    Jun 11, 2014 @ 20:25
    Amir Khan
    0

    If I'm understnading correctly, AltTemplate is what you want. Go ahead and create a view oustide of your master (or inside it) called MyView (or whatever), go to http://mydomain.com/myview and you'll get that page. Or mydomain.com/somenestedumbracourl/myview and you'll still get it.

    You can also use ?altTemplate=myview, heres some documentation on it: http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/templating/alt-template/documentation

    -Amir

Please Sign in or register to post replies

Write your reply to:

Draft