I am new to Umbraco but we are using ver 4.7.1.1 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 .
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.
Show different content based on query string?
Hi,
I am new to Umbraco but we are using ver 4.7.1.1 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?
Thanks!
Hi
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!
is working on a reply...