Timeline for Trying to filter content by two field values (either/or)
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 27, 2016 at 17:42 | comment | added | Brittany | Lol did that (changed all field names accordingly) - still nothing :/ | |
May 27, 2016 at 8:03 | comment | added | Joseph Dempster | $user is a global variable that refers to the currently accessing user so it shouldn't be in the $data. I noticed there is no field_universal in your available variables but there is field_universalswap. Is this the field you're using to decide if a row can be viewed by all users? If so you need to replace $data->field_universal with $data->field_universalswap | |
May 27, 2016 at 1:05 | comment | added | Brittany | See edit above (included list of available variables). | |
May 27, 2016 at 0:58 | comment | added | Brittany | Property names are correct. When I remove global $user, all results are visible but not filtered (not sure if that helps or not). Though $user doesn't seem to be in the view list of available variables :/ | |
May 27, 2016 at 0:53 | comment | added | Joseph Dempster | Try dropping dsm($data); into your php filter and just double check that the property names i've put in the conditional match the property names on the data object. If they're incorrect just replace them with the ones from your data object. | |
May 27, 2016 at 0:43 | comment | added | Brittany | Strangely, this code in global:php under filter criteria gives me no results (even though there should be results visible)? | |
May 27, 2016 at 0:30 | history | answered | Joseph Dempster | CC BY-SA 3.0 |