I'm currently looking to implement AMP on a site we've built that makes heavy use of the Paragraphs module (https://www.drupal.org/project/paragraphs).

Is it possible to add support so I can change the view mode of the content inside the paragraphs module to use AMP-formatted fields? For the time being I've been using the AMP PHP library to automatically convert the rest of the page but this doesn't feel like the best / most flexible solution to me.
Of course if I've completely missed the point of it then sorry!

Comments

psebborn created an issue. See original summary.

psebborn’s picture

Issue summary: View changes
vaccinemedia’s picture

@psebborn How did you get on with AMP and paragraphs?

psebborn’s picture

@vaccinemedia in short, I didn't! I ended up just using the option to force the page content through the AMP formatter.

I think I'd end up having to create different page templates if I wanted to do something different unfortunately.