I installed the rate module as well as voting API 8.3.0 beta 4 on my Drupal 10.2

The voting seems to work, but I can't find the tokens in the default metatags page.

I input them manually, but no value is given back.

Is there anything I need to do to enable Voting API tokens with the rate module ?

Comments

DrupalDope created an issue. See original summary.

tr’s picture

Category: Bug report » Support request
Priority: Major » Normal

Have you enabled the votiingapi_tokens module?

drupaldope’s picture

yes, votingAPI Tokens module is enabled

tr’s picture

Version: 8.x-3.0-beta4 » 4.0.x-dev
Status: Active » Postponed (maintainer needs more info)
sircosta’s picture

Hi! Same issue.

We are currently using the following versions:

Fivestar: 8.x-1.0-alpha5

VotingAPI: 8.x-3.0-beta5

VotingAPI Tokens: 8.x-3.0-beta5 (enabled)

We expected to find tokens for ratingValue and ratingCount (for example [node:field_rating:rating], [node:field_rating:votes] or similar), but they are not available in the token browser.

We need these tokens to output structured data (AggregateRating with ratingValue and ratingCount) via Metatag in Drupal 10.

Could you please confirm if support for these tokens is already implemented in VotingAPI Tokens, or if additional configuration is required? We would be happy to provide any extra details (site setup, field configuration, screenshots, etc.) if that helps.

Thanks a lot for your work on this module!