Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was wondering if we could have a sub-module to provide a way to easily add and remove stuff on AMP pages.
Proposed solution
- Create a context condition that can be used to add stuff (blocks, etc) on AMP pages
- A global switch to disable contexts that do not meet the AMP condition. This should be optional.
Comment | File | Size | Author |
---|---|---|---|
#13 | integration_with_context-2862824-13.patch | 9.04 KB | marcelovani |
#9 | integration_with_context-2862824-9.patch | 8.13 KB | marcelovani |
#5 | integration_with_context-2862824-5.patch | 8.12 KB | marcelovani |
#2 | integration_with_context-2862824-1.patch | 8.06 KB | marcelovani |
Comments
Comment #2
marcelovaniComment #3
guardiola86 CreditAttribution: guardiola86 commentedI've tested your submodule and works great.
Comment #4
marcelovaniComment #5
marcelovaniLooks like I missed a 'little' detail, re-uploading patch
Comment #6
marcelovaniChanging status to make tests run
Comment #9
marcelovanire-rolled patch
Comment #11
marcelovaniComment #13
marcelovaniCreated helper module to download dependencies on drupal CI
Comment #16
marcelovaniWe have been using this patch in production for a couple of months and it works fine. The new sub-modules is completely detached from the main module.