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.
I have a multi value text field (unlimited cardinality).
This is the current output:
<meta name="dcterms.creator" content="Doe, John, Doe, Jane, Smith, Shiela" />
I want this output:
<meta name="dcterms.creator" content="Doe, John" />
<meta name="dcterms.creator" content="Doe, Jane" />
<meta name="dcterms.creator" content="Smith, Sheila" />
Is there any possible way to do this?
Comments
Comment #1
cudevdev CreditAttribution: cudevdev commentedComment #2
DamienMcKennaThe dcterms.creator tag isn't currently set up to allow multiple values, but if it were currently it would result in six tags based upon your example. Hrm. This is tricky.
Are your values coming from a field?
Comment #3
cudevdev CreditAttribution: cudevdev commentedYes, a text field, configured to have unlimited values. In this example, there are three values: "Doe, John", "Doe, Jane", and "Smith, Sheila"
In a Krumo devel debug, it would look something like:
Comment #4
DamienMcKenna