Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I created :
- a flags for flagged contents.
- a flags for flagged the commentaries.
- a flags to flage the products.
I can create:
- a view that displays all flagged contents.
- a view that displays all flagged comments.
- a view that displays all flagged products.
I want to put everything together in one view.
How to display a view that displays both content, comments and flagged products ?
Comment | File | Size | Author |
---|---|---|---|
#5 | Capture du 2017-07-22 15-10-21.png | 176.46 KB | zenimagine |
Comments
Comment #2
joachim CreditAttribution: joachim as a volunteer commentedViews list only one type of entity. You can get round this to some extent by starting with one base entity type, and adding relationships.
So you'd make a list of flaggings, add the relationships to node, comments, and products. You then set it to show rendered entities, or merge the fields in table.
Comment #3
zenimagine CreditAttribution: zenimagine commentedthank you. What are the views used to display "Flagging" ?
I tested and I manage to get only the identifiers :
Comment #4
joachim CreditAttribution: joachim as a volunteer commentedYou need to add the relationships as well.
Comment #5
zenimagine CreditAttribution: zenimagine commentedI had thought of it, but in relation there is only "User".
Would you have an example ?
Comment #6
joachim CreditAttribution: joachim as a volunteer commentedDrat, I thought that was implemented already. See #2723703: Add relationship to flagged entities when Flagging is base table.
Comment #7
zenimagine CreditAttribution: zenimagine commentedThank you, so my request is feasible?