Closed (fixed)
Project:
Context
Version:
6.x-3.0-alpha2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Dec 2009 at 13:55 UTC
Updated:
23 Feb 2010 at 04:40 UTC
Jump to comment: Most recent file
Is it planned/ or is it not currently in for any reason -- to have the possibility to AND the conditions. So one can check
if user is authenticated AND path is foo - show block.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | context_and_or.patch | 13.12 KB | yhahn |
Comments
Comment #1
mrfelton commentedYes, this would be most useful.
Comment #2
yhahn commentedThis is on my list to look into for Context 3.x. The current plan is to allow only FULL condition AND'ing or FULL condition OR'ing, not a more complex set like A AND (B OR C).
Comment #3
yhahn commentedAlso ANDing and ORing are great words.
Comment #4
amitaibu"the ANDing and the ORing" -- yeah, it should be a band name ;)
Comment #5
johnpitcairn commented+1. I need this to make context useful for me. I need to be able to set a context by node type AND taxonomy term. Full AND or OR conditions would be fine.
Comment #6
yhahn commentedHere is an ANDing / ORing patch for Context 3.x. Would love a review before committing.
Comment #7
yhahn commentedReview by miccolis gets the thumbs up and existing tests pass. Committed: http://drupal.org/cvs?commit=326160
Now to add some conditions that will actually yield reasonable tests for the AND case as well...