Active
Project:
Metatag
Version:
2.1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Oct 2022 at 21:03 UTC
Updated:
23 Apr 2025 at 10:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fwustI tried to reproduce the problem with last 8.x-1.26 version. The meta description is well displayed.
Comment #3
trickfun commentedSame error for me.
Drupal 11.1
Column is empty
Comment #4
trickfun commentedThe patch show correct value.
Comment #5
tostinni commented@trickfun, can you detail a little bit more how to reproduce this bug, like @fwust I tested on a views page and the meta description is correctly displayed.
Thanks
Comment #6
shivam_tiwari commentedComment #7
trickfun commented@tostinni, create a simple view of articles.
When i add metatag field i have only the "Empty formatter" in the formatter select.
The formatter code is:
How can print meta values if the formatter returns empty array?
Comment #8
aditi saraf commentedI am working on this issue
Comment #9
trickfun commented@aditi saraf try my patch
thank you
Comment #10
aditi saraf commentedi try to reproduce this issue on drupal 11.0.0 . For this i installed metatag , meta tag: view module .And added meta tag field in view . And saved it. I just added some dummy value for meta tag ang in result i can see all the added meta tag. It is working for me . Attaching screenshot below.
Comment #11
aditi saraf commentedComment #12
aditi saraf commented@trickfun just seeing your comment but i already tried it and for me it is working. Thanks
Comment #13
trickfun commented@aditi saraf
The problem is not the metatag into html page but the value of metatag in view table.
Add metatag field to your view and show me the result table with metatag column.
The metatag column is empty.
Thank you
Comment #14
aditi saraf commented@trickfun i am trying to add metatag as a field in view, but i am not getting any option to add meta tag as a fied. Let me know if i need to install any module for this. I already have meat tag and metatag: view module configured. Attached a file here for same
Comment #15
trickfun commented@aditi saraf
- go to node article configuration page
- add metatag field to node
- go to your view
- setup you view as table of fields
- add new field to view. search for metatag field name.
- run the view
- the metatag column field is empty.
Comment #16
aditi saraf commented@trickfun thanks for helping me to reproduce this issue. I tried to apply your patch but still in view metatag field is empty. How everempty formatter is not coming.
Comment #17
trickfun commentedYou need to use MetatagFormatter not EmptyFormatter.
Comment #18
aditi saraf commented@trickfun after using meta tag i am getting following issue
Drupal\Component\Plugin\Exception\PluginException: Plugin (metatag_empty_formatter) instance class "Drupal\metatag\Plugin\Field\FieldFormatter\MetatagEmptyFormatter" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of C:\wamp64\www\dummydr\web\core\lib\Drupal\Component\Plugin\Factory\DefaultFactory.php).
Comment #19
trickfun commentedHave you clean the cache?
Look inside metatag\Plugin\Field\FieldFormatter if MetatagEmptyFormatter exists.
Thank you
Comment #20
damienmckenna