- Issue created by @a.sinitsa
- 🇩🇪Germany jurgenhaas Gottmadingen
@a.sinitsa which "meta tags" do you want to overwrite? Those from the Metatag → module? If so, we would have to either ask the metatag maintainers, if they wanted to integrate with ECA or we would have to start a new module eca_metatag because ECA itself won't get anything included that introduces new dependencies.
And I'm not sure what you mean by overwriting "the results of faceted filters". How is that related to meta tags?
- 🇷🇺Russia a.sinitsa
I want to override title, description and maybe canonical. We have many clients who have product catalogs built on search api with faceted filtering. For SEO optimization work, we often need to override meta tags for a combination of faceted filters. This is not very convenient to do right now. But if ECA could redefine meta tags, it would be much easier.
- 🇩🇪Germany jurgenhaas Gottmadingen
I understand. When we want to overwrite something, we need to know where that data comes from. Hence the question, if you're talking about meta tags from the metatag module or if you have anything else that creates those meta tags for you?
- 🇷🇺Russia a.sinitsa
Of course, the main tool for defining meta tags in the catalog is the metatag module. It overwrite meta tags for a taxonomy term, as for a catalog section. And what is needed next is to override the meta tags for the taxonomy term if any facets are active.
- 🇩🇪Germany jurgenhaas Gottmadingen
WRT all your conditions (facets, terms, filters, etc.) you should be able to receive them from the URL. So, existing conditions in ECA should already do that part of the job.
As for overriding metatags of a view, I've just looked into the metatag_view module and they override the metatags themselves by implementing
hook_metatags_alter()
. That hook then reads the view config and overrides the default metatags. With that in mind, one could overwrite the view config dynamically by using theConfig: write
action. I've just tested that and I'm able to e.g. set the title of the page or the summary tag.If that's not sufficient, someone would have to write a separate module eca_metatag to get there, as described above.
- Status changed to Fixed
over 1 year ago 8:28am 13 July 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
Closing due to missing feedback.
Also, note that there is now the ECA Metatag → integration module available.
Automatically closed - issue fixed for 2 weeks with no activity.