Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I tried to enter tokens in a description tag of a user page, and none of them were replaced.
It seems to work only with global (and maybe node) tokens, but not with other tokens.
Looks like a bug or something, no ?
Thanks
Comments
Comment #1
univate CreditAttribution: univate commentedTokens will only work on pages where they make sense, this is explained via the help text.
As an example you can't use node tokens on the contact form page (as there is no node on the contact form page).
Comment #2
artscoop CreditAttribution: artscoop commentedYes, for sure. It is obvious, however, I cannot use node and CCK tokens on a user profile with Profile Content (that is a node appended to the user profile).
I suppose that no node context exists on such pages, even if node information is appended.
Comment #3
univate CreditAttribution: univate commentedYeah the node tokens will probably only work on "node/X" pages.
Just like adding meta tags to a pages which has a view of 20 nodes will not add all the tokens for those 20 nodes to the meta tags. Attaching a node to other content will probably be the same (although I haven't tested this).