Hi everyone !
I am trying to include *AMP* version pages in *django CMS*. Is there any
standard or known way to do this?
For the plugins I have a context variable "amp" that helps me to choose the
template for this one with the *get_render_template* function.
def get_render_template(self, context, instance, placeholder):
if context.get('amp', False):
return "my_app/plugins/my_plugin_amp.html"
else:
return "my_app/plugins/my_plugin.html"
But I can't find a way to tell django CMS to select the template AMP
version for the page template as these are saved in the database ¿any idea?
Regards!
--
Message URL:
https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to
[email protected]
---
You received this message because you are subscribed to the Google Groups
"django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/django-cms-developers/dceabce6-71f4-4499-b8fd-5aea77799520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.