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

skov’s picture

I 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:

EntityMetadataWrapperException: Unable to load the taxonomy_term with the id autocreate. in EntityDrupalWrapper->value() (line 623 of C:\wamp\www\drupal-7.0\sites\all\modules\entity\includes\entity.wrapper.inc).

After removing taxonomy reference field [node:field-part-manufacturer:name] in pattern for the title, it works correctly.

daviesap’s picture

Wondering 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

greenbug’s picture

I’d be very interested to find whatever solution or bypass for this point too.
subscribing.

gb

mattab’s picture

I 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

daviesap’s picture

I'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

brulain’s picture

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

@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.

brulain’s picture

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

Oups...
Sorry, I have changed the version.

Coupon Code Swap’s picture

@andrew

I've had success with [node:field-name:name]. Works fine.

(where field-name is the name of the field (!)

[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:?].

odisei’s picture

Same problem. Anyone found a solution?

likewhoa’s picture

confirmed with autocomplete_deluxe too, it only works when there taxonomy term exist and doesn't for new terms added on node creation.

Waen’s picture

I have the same annoying problem. Do you know any fix or way to do before to get a fix?

srsbl’s picture

I 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).

mrded’s picture

same problem with node reference fields.

fantom84’s picture

try to use [node:field_name] instead [node:field-name:name]

GiorgosK’s picture

Issue summary: View changes

suggestion in #14 worked for me

manish-31’s picture

Use 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]

gaurav.kapoor’s picture

Status: Active » Closed (outdated)