Hi, I've written a module that uses PURL to add a prefix element to the path. How can I enable a Context to trigger depending on if this PURL element is set? Adding a "Path" condition for "myprefix/*" doesn't work, presumably because PURL has stripped off the prefix by the time the request gets to Context. Do I need to write a custom condition?

Comments

steven jones’s picture

Title: Trigger condition by PURL element » Context module integration
Project: Context » Persistent URL
Version: 6.x-3.0-rc2 » 6.x-1.x-dev
Category: support » feature

I think the PURL module is best placed to implement this feature.

smokris’s picture

Category: feature » support
Status: Active » Fixed

@ryan_courtnage: Yes, either write a custom Context Condition, or in your PURL Provider Callback, call context_set() to activate the Context.

Also, I've just published a little module which might be helpful in this situation --- http://drupal.org/project/purl_static.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.