Hi,

I'm using facetapi and I have a nice token that let me set the with page_title module.

list<[facetapi_active:active-value]> [current-page:page-title] | [site:name]

Before working on the migration from page_title, I just want to be sure that I could use something similar with metatags.

Comments

Dave Reid’s picture

Status: Active » Fixed

If the token works independently, then it should work completely fine in the Meta tag module.

Marc Angles’s picture

Status: Fixed » Active

hmmm, why fix this? I mean did you really understand the question?

Perhaps my question was not explicit enough... So sorry.

Facetapi is used generally in views, with some backend that provides data. I figured that the problem will come with any views in the website, where metatag does not look to provide any usable configuration.

I'm testing now to see if it would work, first, where should I put the token ?

So, even if the token should work, there is nowhere to put it...

Marc Angles’s picture

Here is new details of the problem.

We use search_api_views which does not looks like working with the new way metatags_views is functioning (I think I've seen an issue somewhere about this. I don,t find it anymore...).

But I think I bypassed all these problems by installing the little metatag_views that we can find in the sandboxes.
https://www.drupal.org/sandbox/ribakker/1356928

I renamed it since it was a dupe of the metatag_views we have here.

I disabled metatag_views and enabled metatag_views_renamed

I got to the admin/config/search/metatags page and "Add a Metatag default", found my view in the list, define a title tag and I was abble to change the "title" of the search view page.

Still, the remaining problem is this token (see issue description) that does not work in there.

Thanks for your patience.

Marc Angles’s picture

Status: Active » Closed (duplicate)

Duplicate of https://www.drupal.org/node/1830952

I feel like somebody attacked this issue long time ago and has a patch committed into metatag.

The problem was that a patch is still pending at facetapi_bonus.

I got it working (the token is now accepted) by applying a patch facetapi_bonus. See https://www.drupal.org/node/1863780#comment-6868564

Sorry for the noise.