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.
Twitter Cards in the type Gallery expects multiple metatags for the 4 pictures that build the card (twitter:image0
, twitter:image1
etc.).
My image field building a gallery accepts multiple files. Metatag's token [node:field_image]
lists comma-separated all files associated with this field. Tokens [node:field-image:0]
, [node:field-image:1]
etc. do not work.
Is there a way to list 4 files (first four ones or selected four) from the image field with a token?
Comments
Comment #1
DamienMcKennaThis is basically the same issue as #2338211: How to only use one item of a multi-item field?, so lets focus on that discussion.