2

Here is the structure:


  • Content type: Document
  • Entity reference (multiple) to: Specialization

  • Content type: Specialization
  • Entity reference (multiple) to: Department

I have Entity Reference and Entity Reference Filter modules installed.

Is there a way to create a view of documents and let the users filter the view by both Specializations and Departments?

Thanks in advance for any help on that!

3
  • How could you filter by both when there is no relation between Document and Department? Or do you mean a serial filtering, first filter by Specialization then by Department within that Specialization? Oct 14, 2015 at 14:40
  • Document has relation to specialization and specialization has a relation to department. So if we know that specialization 1 is linked to department 2, can we not know that a document linked to specialization 1 would somehow be linked to department 2?
    – MrUpsidown
    Oct 14, 2015 at 16:11
  • Ok, I don't know of a way to filter on this indirect relationship in Views. You can do this via a custom module easily because you can revise the SQL queries directly. See the answers by Triskelion in http://drupal.stackexchange.com/questions/64020/drupal-views-relationships-to-an-indirect-referenced-contenttype Oct 14, 2015 at 17:30

0

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.

Browse other questions tagged or ask your own question.