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.

CommentFileSizeAuthor
#6 context_and_or.patch13.12 KByhahn

Comments

mrfelton’s picture

Yes, this would be most useful.

yhahn’s picture

This 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).

yhahn’s picture

Also ANDing and ORing are great words.

amitaibu’s picture

"the ANDing and the ORing" -- yeah, it should be a band name ;)

johnpitcairn’s picture

+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.

yhahn’s picture

Version: 6.x-2.0-beta7 » 6.x-3.0-alpha2
Assigned: Unassigned » jmiccolis
Status: Active » Needs review
StatusFileSize
new13.12 KB

Here is an ANDing / ORing patch for Context 3.x. Would love a review before committing.

yhahn’s picture

Status: Needs review » Fixed

Review 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...

Status: Fixed » Closed (fixed)

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