Closed (fixed)
Project:
Meta tags quick
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2011 at 13:32 UTC
Updated:
29 Apr 2012 at 13:27 UTC
I find the auto-setting functions really useful.
Is there any plan to extend the use of token (like in the meta keywords) to the meta description?
I'd find it quite useful to have a fixed test plus tokens for certain type of nodes exactly like now it is possible with the keywords.
Thanks
Comments
Comment #1
deng commentedsubscribe
Comment #2
khiminrm commentedI need the same functionality, because I have pages without body field and so no opportunity for autogeneration meta tags based on tokens.
Comment #3
khiminrm commentedProposition how to accomplish this:
by adding
$item['metatags_quick'] = token_replace($item['metatags_quick'], array('node' => $object));after line 336:foreach ($items as $delta => $item) {in the file metatags_quick.module (module version 7.x-2.4).Then in the "manage fields" of the target content type edit field "Meta description" and put desired tokens to the default value. After that go the Manage display of content type and select the format of the field "Meta description" as Default metatags_quick formatter. If you use Display suite, then this field must be placed in some of your display regions.
This will work only for the new nodes, for existing nodes you must manualy insert meta description for each node.
Comment #4
valthebaldPlease check patch from #1530644: Tokens for Keywords show up as code
Comment #5
khiminrm commentedThanks! #4 works for me
Comment #6
valthebald