Hello.

I have created a text field, that i wan't to use as the meta description instead of the default body.
[node:summary] only take wats in the body field.

I tried [node:field_newtextfield] But search engines don't se this.

Does anybody have a solution to this?

Comments

DamienMcKenna’s picture

Status: Active » Postponed (maintainer needs more info)

Have you verified the meta tags are displayed correctly in the page source? Remember that search engines will sometimes ignore the meta tags and make up their own minds on what constitutes the page description.

AlfTheCat’s picture

Title: Changing meta description for field from body/summary to custom textfield? » Can not use custom fields on meta tags II
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

As this issue #1461856: Can not use custom fields on meta tags. was closed and this issues seems to have the same problem, I'm updating this one as follows.

I'm trying to use custom fields data in metatags for specific node types. My approach is as follows:

  1. I create a context and assign it a condition of "node type" and assign it the reaction: "Meta data". I have to do it like this because I want specific page titles with values derived from fields only present on that node type. So I can't (and don't want to) use the global settings for this. Say, my node type has a "city" field and I want to use it in the field.
  2. I save the context and edit the "meta data" reaction. When I browse the available tokens, my field is not there.
  3. I try to enter the token anyway ([node:field_city]) but now the save of the reaction fails with a message:
    The Page title is using the following invalid tokens: [node:field_city], [node:title]

    .

Please note that [node:title] is also not accepted, even after I save and re-edit the context.

Hope this helps :)

AlfTheCat’s picture

Category: Support request » Bug report
DamienMcKenna’s picture

Status: Active » Closed (duplicate)