context.module provides a great infrastructure for performing reactions when a sitebuilder-specified set of conditions are met. Currently, context.module allows sitebuilders to match a node on, say, its path alias or its menu link. However, path aliases aren't robust since they won't survive translation, and menu links won't survive exporting to Features since they depend on the node's autoincrement nid.

I propose adding a context.module Condition to uuid.module, allowing Contexts to be triggered by matching the current node's UUID.

Patch attached.

Comments

Status: Needs review » Needs work

The last submitted patch, uuid-context-00.patch, failed testing.

smokris’s picture

Status: Needs work » Needs review
StatusFileSize
new1.83 KB

2nd try. Can't assume context.module exists. Thanks for testing, PIFR-bot!

smokris’s picture

StatusFileSize
new1.84 KB

Revised patch: only activate context when full node is viewed (not teaser).

skwashd’s picture

Project: Universally Unique IDentifier » Context UUID
Version: 6.x-1.x-dev » 7.x-1.x-dev

Moving to the context_uuid project. The project is currently D7 only.

skwashd’s picture

Title: Provide a context.module Condition » Backport to D6

Updating title to better reflect the nature of the request.

skwashd’s picture

Status: Needs review » Closed (won't fix)

It has been more than 6 months since this issue was filed and the submitter hasn't rerolled it I am marking this as wontfix. If someone wants to pick this up they're welcome to do so, but official support for the D6 port will end when Drupal 8 is released.