Hi all,
I'm playing around with alternative views is it possible to do altTemplate but with custom route?
For example http://www.com/apple-pie/ renders normal view, and http://www.com/amp/apple-pie/ renders a different one?
(I also want logic to check if document type supports this alternative markup).
If anyone have experience with the amp project, what's the recommended URL structure for amp urls, maybe use query string instead?
Alternative view with custom routing
Hi all, I'm playing around with alternative views is it possible to do altTemplate but with custom route? For example http://www.com/apple-pie/ renders normal view, and http://www.com/amp/apple-pie/ renders a different one? (I also want logic to check if document type supports this alternative markup).
If anyone have experience with the amp project, what's the recommended URL structure for amp urls, maybe use query string instead?
Hi Sean,
I don't see any reasons why you can't do that.
Just add rewriting rule for all rules with /amp/ to url with ?altTemplate=test
If you need to check document type and supported views before render - then you need custom URL Rewrite Module
Thanks,
Alex
is working on a reply...