Problem/Motivation
I am trying to utilize EntityQueue to select which media items to display in a view. I have done this successfully for content based views but when I create a media view EntityQueue is not listed under the relationships tab. This makes it impossible to set up the relationship with a specific entityqueue to only display media items that are located in the entityqueue
Steps to reproduce
Create a media entityqueue - add media items to the entitiyqueue
Create a view that displays media
Click on Relationship - and see that there is no option to create a relationship between the media items and an entityqueue.
Proposed resolution
Similar to ContentQueue you should be able to create a EntityQueue containing media items and filter view items using the relationship and selecting the specific queue via name under arguments.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork entityqueue-3466357
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
robbt commentedComment #3
lissy commentedI have the same problem with a media view.
There is no relation possible to EntityQueue.
Some ideas?
Comment #4
lissy commentedCan it be that simple? I wrote the following hook in my Custom-Module
Then I can sort the relation Sort list media and sort with this relation.
It works for me.
Comment #5
charly71 commentedSame problem with taxonomy terms!
Comment #8
amateescu commentedThe problem is that views_data is cached, and we need to clear that cache when adding (or deleting) queues.
Comment #10
amateescu commentedMerged!