0

There is a field of type list (text) [field_list_user] on user accounts and a field of type list (text) [field_list_node] on nodes. Both fields have exactly the same keys but different labels [and field names]. Any content of the site can be authored by users.

Is it possible to create a block with nodes for a currently logged-in user filtered like: value (key) of field_list_user = field_list_node?

1

1 Answer 1

0

I don't think there is module to do a filter that compare 2 arbitrary value but you can add a php filter using Views PHP module

Then, you can create a PHP filter in your view. Someone write an example that is quite similar to what you need : https://drupal.stackexchange.com/a/44100/36824

1
  • I thought so. I've tried to achieve this using relations and contextual filters in Views but couldn't produce a block like that. Thanks for your advice.
    – 0x6d6c
    Commented Oct 18, 2014 at 20:51

Your Answer

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

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