How can we create custom field and store all results using voting api ?
Voting api is used with like and dislike module, custom field value is associated with each entry and will be displayed along with like/dislike results in table.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2976876.patch | 508 bytes | asherry |
Comments
Comment #2
asherry commentedThis is related to something I was working on, you should be either able to create a custom field in hook_entity_base_field_info, or add a field in the manage fields UI.
For the latter, I had to add this patch to get it working - it seems to be missing a value in the Vote.php plugin comments.
For the former - you can currently create them programmatically with something like this:
Comment #3
asherry commentedAlso deescalating this, as it's not really a major issue in my opinion.
Comment #4
RumyanaRuseva commentedYou may check the Votingapi Widgets module - it allows you to add Voting API fields to entities.
Comment #5
tr commented