Closed (fixed)
Project:
Context
Version:
6.x-2.0-beta7
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2009 at 21:26 UTC
Updated:
1 Apr 2010 at 19:50 UTC
The context's path condition should use the popular fieldset seen on block's (and other items) settings page, where you can choose between showing or NOT showing the element on the specified pages, or use PHP code to determine visibility.
Comments
Comment #1
jmiccolis commentedI'm not sure we're going do this.
For a variety of reasons php code is entirely off the table, chief among them being security and beyond that the very reason the module exists it to get away from needed to use php code for block visibility.
I'll let others voice opinions about path conditions supporting 'not' but this seems to go against the additive model we've got right now and I'd prefer not to have it.
Comment #2
pasqualleyes, I absolutely agree. The current context model does not allow 'not' conditions.
If it would be implemented, then it should be done globally for all condition types, not only for paths.
Comment #3
steven jones commentedLooks like the latest context code in the 2.x branch checks the paths, but doesn't use PHP visibility settings on the block setting page.
Marking as fixed, if this doesn't work, please re-open as a bug.