Hi,

This module is exactly what I've been looking for to automatically assign image alt and title fields. I want to use the default value of the node title.

I have installed File (Field) Paths 7.x-1.0-beta4, I'm starting with just the title field and have ticked both "Update every edit" and "Hide field" (as I want to use a default value) and set the default value as [node:title]

I am getting the following errors, any help would be massively appreciated and thanks so much for your work on this module:

Notice: Undefined index: #entity_type in imagefield_tokens_field_widget_process() (line 142 of /home/content/09/8399109/html/sites/all/modules/imagefield_tokens/imagefield_tokens.module).

Notice: Undefined index: #field_name in imagefield_tokens_field_widget_process() (line 142 of /home/content/09/8399109/html/sites/all/modules/imagefield_tokens/imagefield_tokens.module).

Notice: Undefined index: #bundle in imagefield_tokens_field_widget_process() (line 142 of /home/content/09/8399109/html/sites/all/modules/imagefield_tokens/imagefield_tokens.module).

Notice: Undefined index: #entity_type in imagefield_tokens_field_widget_process() (line 142 of /home/content/09/8399109/html/sites/all/modules/imagefield_tokens/imagefield_tokens.module).

Notice: Undefined index: #field_name in imagefield_tokens_field_widget_process() (line 142 of /home/content/09/8399109/html/sites/all/modules/imagefield_tokens/imagefield_tokens.module).

Notice: Undefined index: #bundle in imagefield_tokens_field_widget_process() (line 142 of /home/content/09/8399109/html/sites/all/modules/imagefield_tokens/imagefield_tokens.module).

Comments

kingswoodute’s picture

Okay I have found out that the errors were being produced because I was using the Media widget. Once I change the widget to the default image widget the errors are no longer created.

However, when edit the image title field (I have ticked both "Update every edit" and "Hide field" [as I want to use a default value] and set the default value as [node:title]) but if I edit the node and save it (my understanding is token replacement takes place on node save after editing) the image title tag remains empty.

Thanks again for the module and for any help you may be able to provide.

Cheers

pools’s picture

I have the same problem... I have to use the module "Média" to set image field...

Some patch is available ? ^^