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.
Automatic Nodetitles is not working properly for fields that use the Autocomplete widget when the term is new. For terms that have already been added, it does work. For terms that haven't been added yet, after first save the token pattern is displayed in the title i.e.
[node:field-example:term:name]
After saving again, then the title is properly displayed (obviously because the term now exists in the database). This is also an issue with 6.x.
Comments
Comment #1
skov CreditAttribution: skov commentedI can confirm this behavior using WAMP on Win7 and:
Drupal core 7.0
Automatic Nodetitles 7.x-1.0-alpha1
References 7.x-2.x-dev (2011-Jan-31)
New terms in taxonomy reference fields return the following error for me:
After removing taxonomy reference field [node:field-part-manufacturer:name] in pattern for the title, it works correctly.
Comment #2
daviesap CreditAttribution: daviesap commentedWondering if you can help me - I really need to get the three taxonomy terms I have assigned to a node into the node title.
Am using Drupal 7 with 7.x-1.0-alpha1 of Autonode titles. The three taxonomy references are stored in the content type as a term reference with a select list.
Have tried [node:field_product_type_tax:term:name] from above (where field_product_type_tax is one of the field names in my content type which stores the term reference) but that does not work.
Any help very much appreciated.
Thanks,
Andrew
Comment #3
greenbug CreditAttribution: greenbug commentedI’d be very interested to find whatever solution or bypass for this point too.
subscribing.
gb
Comment #4
mattab CreditAttribution: mattab commentedI am experiencing the same issue, is there maybe a related bug report? http://drupal.org/node/1022714
Actually I think there is a solution (involving another plugin?): http://drupal.org/node/373978#comment-1654702
Comment #5
daviesap CreditAttribution: daviesap commentedI've had success with [node:field-name:name]. Works fine.
(where field-name is the name of the field (!)
Only problem is, if there is no term applied to that field, Auto node titles adds the text [node::name] to the title.
Andrew
Comment #6
brulain CreditAttribution: brulain commented@mattab
Yes, it is with AN 6.x-1.2 version.
I do not use AN anymore, but Rules. For each content type, I have 2 rules: one for a new content, and one for an updated content.
There is more work, but it works fine !
Regards.
Comment #7
brulain CreditAttribution: brulain commentedOups...
Sorry, I have changed the version.
Comment #8
Coupon Code Swap CreditAttribution: Coupon Code Swap commented@andrew
[node:field-name:name] is not available as a token for Term reference fields.
[node:field-name:term:name] is available but does not work on first save for new terms. The same is true for [node:field-name:values:?].
Comment #9
odisei CreditAttribution: odisei commentedSame problem. Anyone found a solution?
Comment #10
likewhoa CreditAttribution: likewhoa commentedconfirmed with autocomplete_deluxe too, it only works when there taxonomy term exist and doesn't for new terms added on node creation.
Comment #11
Waen CreditAttribution: Waen commentedI have the same annoying problem. Do you know any fix or way to do before to get a fix?
Comment #12
srsbl CreditAttribution: srsbl commentedI was having this problem, but was able to solve it using the corresponding term reference field token (e.g. node:field_city) instead of the field token (e.g. node:field-city).
Comment #13
mrded CreditAttribution: mrded commentedsame problem with node reference fields.
Comment #14
fantom84 CreditAttribution: fantom84 commentedtry to use [node:field_name] instead [node:field-name:name]
Comment #15
GiorgosKsuggestion in #14 worked for me
Comment #16
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commentedUse current version of token module, it automatically generates tokens for all fields doesn't matter if it is autocomplete or not.
If you don't have token module installed on your site use the following format for the token : [node:field_name]
Comment #17
gaurav.kapoor CreditAttribution: gaurav.kapoor commented