Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
Documentation
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2011 at 21:49 UTC
Updated:
17 Feb 2016 at 12:37 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerMaybe hook_views_query_alter is much easier to use for you.
That's a core hook, so you could ask in the forums for help.
Comment #2
paoloteo commentedhello, I can actually hook in with hook_views_query_alter but what should set to have that condition work with a "LIKE" ?
Comment #3
paoloteo commentedI've tried with something like:
but does not seam to work.
Any help is appreciated.
Comment #5
Aritra Banerjee commentedYou should work with $query->add_where() condition under _views_query_alter hook function. You can try something like this below(It worked successfully in Drupal 7):
NOTE: 1. Here "field_data_field_user_interest" field must be added in Relationship of Views configuration.
2. Any desired SQL condition can be added in add_where() of $query.