- ๐บ๐ธUnited States DamienMcKenna NH, USA
Adding attribution to dinarcon who worked on a similar proposal in โจ Add field formatter to view which metatags are being rendered Closed: duplicate .
- ๐บ๐ธUnited States seworthi
metatag_generate_entity_metatags() is a deprecated function and was removed in 2.0.0. Need to switch to metatag_generate_entity_all_tags()
- ๐บ๐ธUnited States seworthi
Updated patch replace metatag_generate_entity_metatags() with metatag_generate_entity_all_tags()
- ๐บ๐ธUnited States bdanin
The patch in #27 works for me. It would be nice if there was an option to output ALL tags, instead of having to add a field for each.
Also, it would be ideal to see the tokens, and not what is rendered as an option.
Finally, to know whether or not nothing is entered and is empty. That's how the formatter in the related ticket worked, which provided a lot of benefit.
See:
https://www.drupal.org/project/metatag/issues/3172117 โจ Add field formatter to view which metatags are being rendered Closed: duplicate
see: - last update
11 months ago 305 pass, 31 fail - last update
11 months ago 305 pass, 31 fail - ๐ฎ๐นItaly trickfun
Patch doesn't work on 2.0
how can i display metatag values on view?Thank you
- ๐บ๐ธUnited States DamienMcKenna NH, USA
1. It needs to be rerolled for the 2.0.x branch.
2. The UI needs to be improved so it has an initial checkbox that says "Show all meta tags", if that isn't checked then it shows all of the individual tags that are available.
3. Not sure on loading just the raw values with the tokens rather than showing the processed values - you can already see the tokens on the admin page (admin/config/search/metatag) for each entity type and bundle, so I don't see much benefit in that. - ๐จ๐ฆCanada Charlie ChX Negyesi ๐Canada
I went a different route and created a views field plugin which can display a single metatag. If multiple are required, Views has the capability to add multiple instances of the same field. https://git.drupalcode.org/-/snippets/220