Hi Guys,

I have a "need" which I would like you to consider integrating into the nodewords module.

I installed the nodewords module and added all the default meta tags (specifically focus on the description). When I create a new taxonomy term; the default meta tag description is being displayed when viewing the term page.

Won't you, please create a feature where one can use tokens to auto generate a taxonomy term description for specific vocabularies?

Here is what I think is required:
A text area where you can enter the taxonomy term's description "structure" with the token.
A list where you can select the vocabulary to which you would like to apply the "generated description".

How it should work (example scenario)
I have a vocabulary containing "locations" (state / province)
I have another vocabulary containing "vehicle types" (BMW, Audi, etc.)
I would like to select the "locations" vocabulary and enter a description in the text area; something like this: "Used cars for sale in [term-raw]".
This should then automatically add the meta description to the term page which will look like: "Used cars for sale in (selected state/province)" - eg. " "Used cars for sale in New York"

The same would go for the vehicle type vocabulary.
I would like to select the "vehicle type" vocabulary and enter a description in the text area; something like this: "Used [term-raw] for sale".
This should then automatically add the meta description to the term page which will look like: "Used (selected vehicle type) for sale" - eg. " "Used BMW for sale"

Please let me know if you might be interested in adding this type of functionality.

Also please point me in the right direction ifthis not be the correct place / module to request this.Hi Guys,

I have a "need" which I would like you to consider integrating into the nodewords module.

I installed the nodewords module and added all the default meta tags (specifically focus on the description). When I create a new taxonomy term; the default meta tag description is being displayed when viewing the term page.

Won't you, please create a feature where one can use tokens to auto generate a taxonomy term description for specific vocabularies?

Here is what I think is required:
A text area where you can enter the taxonomy term's description "structure" with the token.
A list where you can select the vocabulary to which you would like to apply the "generated description".

How it should work (example scenario)
I have a vocabulary containing "locations" (state / province)
I have another vocabulary containing "vehicle types" (BMW, Audi, etc.)
I would like to select the "locations" vocabulary and enter a description in the text area; something like this: "Used cars for sale in [term-raw]".
This should then automatically add the meta description to the term page which will look like: "Used cars for sale in (selected state/province)" - eg. " "Used cars for sale in New York"

The same would go for the vehicle type vocabulary.
I would like to select the "vehicle type" vocabulary and enter a description in the text area; something like this: "Used [term-raw] for sale".
This should then automatically add the meta description to the term page which will look like: "Used (selected vehicle type) for sale" - eg. " "Used BMW for sale"

Please let me know if you might be interested in adding this type of functionality.

Also please point me in the right direction ifthis not be the correct place / module to request this.

Comments

JCB’s picture

Title: Automatic Taxonomy Term Desctiption using Tokens » Automatic Taxonomy Term Description using Tokens
JCB’s picture

Version: master »
DamienMcKenna’s picture

Version: » 6.x-1.x-dev

The v6.x-1.x branch is the only one that is supported.

JCB’s picture

Excellent. Thanks Damien.

lobo235’s picture

I would love to see this added to Nodewords as well. If anyone has any ideas on how to implement this in the meantime I would love to hear them.

tran_tien’s picture

I'm using 6.x-1.11 , but can't use this function. Please help.

DamienMcKenna’s picture

Sounds like you should review nodewords.api.php and implement a few hooks to do the customizations you need, e.g. hook_nodewords_tags_alter() and hook_nodewords_tags_output_alter().

DamienMcKenna’s picture

Status: Active » Fixed
DamienMcKenna’s picture

FYI the tokens functionality is in 6.x-2.x (what used to be 6.x-1.12), while 6.x-1.x does not use Tokens.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sgabe’s picture

Status: Closed (fixed) » Active

How is this fixed if the needed functionality only available in an unsupported release of this module? Is it safe to use the 2.0-alpha1 version?

DamienMcKenna’s picture

Status: Active » Closed (fixed)

This functionality will not be added to v6.x-1.x, as mentioned above you can use the API if you wish to have it now.

dunkin007’s picture

Status: Closed (fixed) » Active

i want to do the exact same thing. I want to use something like:

[term:vocabulary:name] [term:name], sold by [site:name] ([site:url])

in the term description and have it appear in the description by default.

i'm a newbie. i'd appreciate if you can tell me or point to instructions on how to do this (like copy-paste code). instructions like "use hook_nodewords_tags_output_alter()" are not much sense to me yet :). thank you in advance.

JCB’s picture

Apologies for replying on an old issue.

Please find below instructions to my current working setup for drupal 6.

I used the tokens that can be found on page title (assuming you have this module installed)
/admin/settings/page-title

I edit the vocabulary which I want to automate meta tag creation
admin/content/taxonomy/edit/vocabulary/6

I enter values to the keywords, description, etc. using tokens as indicated below
Example: [catpath-raw] for sale. [cat-raw] for sale. [cat-raw].

Modules Installed
Nodewords - node type meta tags 6.x-1.8
Nodewords basic meta tags 6.x-1.15-beta1+0-dev
Nodewords extra meta tags 6.x-1.15-beta1+0-dev

DamienMcKenna’s picture

Status: Active » Closed (duplicate)
Issue tags: -description, -term, -automatic, -auto, -term description, -auto term description, -auto description, -description meta tag, -auto term meta

This will be possible once #1380362: Re-implement Token integration lands.