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.
Hello.
I want to use value of field with type imagefield_crop in metatags. By default, field of this type, uses formatter "image" for tokens and returns tag "<img src"some url" />
. But module metatag calls strip_tags for all values of metatags and value of this field cannot be printed in metatag. I wrote simple patch, which set param 'default_token_formatter' as 'file_url_plain' for field with type "imagefield_crop".
Comments
Comment #1
eugene.ilyin CreditAttribution: eugene.ilyin commentedPlease do not forget to specify me as author of commit for this patch.
Comment #2
eugene.ilyin CreditAttribution: eugene.ilyin commentedComment #3
eugene.ilyin CreditAttribution: eugene.ilyin commentedNew patch without checking for module_exists
Comment #4
eugene.ilyin CreditAttribution: eugene.ilyin commentedNew patch
Comment #4.0
eugene.ilyin CreditAttribution: eugene.ilyin commented1