Skip to content

Address Field Token shows no data #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mr-simba opened this issue Feb 12, 2025 · 1 comment
Open

Address Field Token shows no data #121

mr-simba opened this issue Feb 12, 2025 · 1 comment

Comments

@mr-simba
Copy link

Hello,

I have a node type "shops" with an Address field (core module).

I am now trying to automatically generate meta tags for this node type using tokens in the Metatag module.

For example I enter the following in "Content -> Node Shops -> Page title" in the Metatag module:
"Shop [node:title] in [node:field_address_field:locality], [node:field_address_field:country]"
(Tokens from Token Browser / Browse available tokens)

While all other tokens work, the address_field tokens are not being replaced with the address data.
So I see "Shop Sampleshop in , " for a node of this node type (of course, there is a full address stored in the node) .

Does anyone have an idea what could be causing this?

Interesting: The same token "[node:field_address_field:locality]" is working perfectly in the Pathauto module.

@mr-simba
Copy link
Author

mr-simba commented Feb 13, 2025

There seems to be a problem with the address field module itself.

Patch 5 helped:
https://www.drupal.org/project/addressfield/issues/3082673#comment-13266416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant