- Issue created by @alex.amtr
- Status changed to Closed: works as designed
over 1 year ago 4:58pm 10 July 2023 - 🇪🇸Spain pcambra Asturies
Like is an entity based module which has full views integration https://git.drupalcode.org/project/like/-/blob/1.x/src/Entity/Like.php#L32 and reference fields to the entity liked https://git.drupalcode.org/project/like/-/blob/1.x/src/Entity/Like.php#L99
You also have a formatter https://git.drupalcode.org/project/like/-/blob/1.x/src/Plugin/Field/Fiel... so if you add the right relationships, you can add the like field and use the like formatter.
- 🇭🇺Hungary tomchy
I'm a newby about drupal. I don't find any solution for views integritation.
- 🇫🇷France alex.amtr
No real solution is proposed ! @pcambra, I don't understand your answer.
It is a shame. It would be very useful to show likes of contents in views. - 🇪🇸Spain pcambra Asturies
Well, that answer is quite uncalled for, @alex.amtr. If there's something that you want to improve from the module, patches are welcomed, as well as documentation and guidelines/tutorials.
As mentioned above, the module provides entity based integration which is available through views without anything else, so if you add a display mode (or view mode) that has the "likes" field and the formatter configured with the "Likes" format.
Then you add a view using the display mode and there you'll see the widget.
There's nothing special about this module really.