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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ekes’s picture

Not 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.

Status: Needs review » Needs work

The last submitted patch, uuid-ctools_access_check.patch, failed testing.

skwashd’s picture

Project: Universally Unique IDentifier » Ctools
Version: 7.x-1.x-dev »
Issue summary: View changes

CTools now supports UUIDs for certain things. I think the feature request belongs in their queue.

Michelle’s picture

Project: Ctools » Chaos Tool Suite (ctools)
Version: » 7.x-1.x-dev

Fixing the projects for other people who got confused by "Ctools" in the autocomplete like I did. :)

annya’s picture

Status: Needs work » Needs review
FileSize
1.55 KB

Fix rbayliss's patch. Let's see if it passes tests and review :)

Chris Matthews’s picture

The 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.

Checking patch fantasy-football/sites/all/modules/contrib/ctools/plugins/access/entity_uuid.inc...
ctools_access_check_for-1556140-5.patch:55: new blank line at EOF.
+
Applied patch fantasy-football/sites/all/modules/contrib/ctools/plugins/access/entity_uuid.inc cleanly.
warning: 1 line adds whitespace errors.