4

Suppose I have these two node types, with the following fields:

Port

Name
Description

Voyage

Name
Port1
Port2
Port3

I used References to link the port fields in Voyage to the node ID of the Port nodes.

Now, in the page of any port node, I need to attach a display of voyages names that has calls to that port. How can I achieve that in Views with EVA?

Or to put it logically: "SELECT Name FROM Voyage WHERE (port1 = (urlid) or port2 = (urlid) or port3 = (urlid));" urlid is the ID of the port we are getting through the argument (contextual filter).

I have used contextual filter, but there seems to be no way to use OR in contextual filters...

1 Answer 1

6

The contextual filters belong to the first filter group so if you click the little arrow besides the Filter "add" then choose "and / or" then you can switch the operator of the first group to OR.

8
  • the problem is that in Druapl 7, "contextual filter" is separated from "Filter" and unlike Filter, "contextual filter" does not have the OR option May 24, 2011 at 16:50
  • Follow the instructions. They are correct. The instructions say click the arrow besides Filter and not Contextual Filter.
    – user49
    May 24, 2011 at 19:00
  • I clicked the and/or choice beside the filter, and I got the screenshot: link I don't see how i can make an OR operation with the contextual filters I have, these only show the normal filter arguments and setting an or operator between them, won't solve my problem May 30, 2011 at 16:17
  • if you change the Operator: AND on this screen to Operator: OR it should change contextual filters to OR.
    – user49
    May 30, 2011 at 19:49
  • But it will affect the other filter, i need the and between "pubished" and "type=voyage" Jun 11, 2011 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.