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.
There currently isn't a way to limit a page manager variant to a certain UUID without eval'ed PHP code. This turns out to be pretty useful in exported content and features, and it's simple enough. Patch attached adds an access condition for a specified entity UUID. This could also be expanded to a "has a UUID" condition pretty easily if anyone has a need for this.
Comment | File | Size | Author |
---|---|---|---|
#5 | ctools_access_check_for-1556140-5.patch | 1.55 KB | annya |
Comments
Comment #1
ekes CreditAttribution: ekes commentedNot tested with 7 yet, it's simple enough though. I've reused it for D6 Node UUID access - sandboxed here: https://drupal.org/sandbox/ekes/1816632 and working well.
Comment #3
skwashd CreditAttribution: skwashd commentedCTools now supports UUIDs for certain things. I think the feature request belongs in their queue.
Comment #4
MichelleFixing the projects for other people who got confused by "Ctools" in the autocomplete like I did. :)
Comment #5
annya CreditAttribution: annya commentedFix rbayliss's patch. Let's see if it passes tests and review :)
Comment #6
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 5 year old patch in #5 to entity_uuid.inc applied cleanly to the latest ctools 7.x-1.x-dev and (if still applicable) needs review.