Copied to clipboard

Flag this post as spam?

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

  • GA 5 posts 25 karma points
    Nov 05, 2013 @ 20:12

    Show different content based on query string?


    I am new to Umbraco but we are using ver in our site.When a call comes in for a page, say http://localhost:555/docs/myservice/service1, is it possible to intercept this call?

    Basically, depending on the query string, I would like to serve up different pages .

    Example: http://localhost:555/docs/myservice/service1?preview=true returns the preview version of the page whereas without the query string we serve up the default page.

    I am trying to implement this to get around the issue of having to login to see a preview page. Is this even possible?


  • Chris Randle 64 posts 174 karma points c-trib
    Nov 14, 2013 @ 16:42
    Chris Randle


    Have you tried adding the altTemplate querystring parameter? Say your document type has 2 templates (TemplateOne and TemplateTwo) it can use, but has been published using just the first, you can specify the second as a querystring parameter to render the page using it.

    e.g. http://localhost/home?alttemplate=TemplateTwo

    Hope this helps!

Please Sign in or register to post replies

Write your reply to: