Copied to clipboard

Flag this post as spam?

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


  • Sean Håkansson 67 posts 193 karma points
    Jun 20, 2016 @ 10:07
    Sean HÃ¥kansson
    0

    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?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Dec 26, 2016 @ 21:48
    Alex Skrypnyk
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft