Closed (duplicate)
Project:
Link
Version:
7.x-1.0-alpha3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2011 at 10:15 UTC
Updated:
29 Apr 2011 at 23:01 UTC
I have a content type with a link field in it. I want to automatically convert the node title to the value of the Link Title field, using Automatic Nodetitles (http://drupal.org/project/auto_nodetitle).
Unfortunately; can't find a token which represents the link title. Actually - in the Token list, the Link field I'm using doesn't get mentioned at all.
Is this is an error on my side or is there something wrong with the current Link release & Tokens?
For who's interested, I currently solved it using a PHP pattern in Automatic Nodetitles:
return $node->field_myLink[$node->language][0]['title'];
Comments
Comment #1
gadams commentedI've made a separate issue to add tokens for fields.
http://drupal.org/node/1111034
Comment #2
jcfiala commentedAnd since #1111034: Add Tokens for Link Fields exists for field tokens, I'm going to close this as a duplicate.