great little module -- it would be fantastic if we could add another condition with an AND... and in my particular case, i need to figure out how to access a field collection field to set as one of the conditional parameters...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

HeathN’s picture

This is a must. AND and OR are very needed. Even just the option to have a regex condition would be fine.

ericwongcm’s picture

I think I might have a use for this feature too..

I am trying to do something like this.

If condition A is meet, then show field X, else if condition B is meet, then show field Y, else blank.

At the moment, I use two views_conditional fields in tandem to achieve this but it looks clumsy.

Christoph K’s picture

Is there a known work around to make field collection fields work?

TanvirAhmad’s picture

I am also looking for the same thing mentioned in #2.

ofry’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide patch for it? Or you can connect me in IRC (ofry) or Skype (ofryaka).

NeuQuest’s picture

I agree this would be easier than the way I'm currently handling multiple conditions which is to use multiple fields for my output. I also use field collections and the way I grab one value is to:

  1. create a custom field collection view (Field Collection views module) with only the field I need (as attachment view)
  2. give the view a custom machine name under "advanced"
  3. set-up the field collection field:
    a) add the field collection field with "exclude from display" checked
    b) the formatter set to "Views field-collection items"
    c) in the name field enter the field collection view name
    d) in the display id field enter the machine name for the view's display
  4. you can then use the newly added field to test against
megaphpdestroyer’s picture

Replace this file with original.
views_conditional/includes/views/handlers/views_conditional_handler.inc
http://i.imgur.com/J7lqelU.png

megaphpdestroyer’s picture

Replace this file with original.
views_conditional/includes/views/handlers/views_conditional_handler.inc

megaphpdestroyer’s picture

shelane’s picture

Status: Postponed (maintainer needs more info) » Needs work

Patch needs to added with correct “patch” extension for testing. Then the status should be set to “Needs Review.”