Closed (fixed)
Project:
Persistent URL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2010 at 15:47 UTC
Updated:
6 Feb 2012 at 06:51 UTC
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
Comment #1
steven jones commentedI think the PURL module is best placed to implement this feature.
Comment #2
smokris@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.