I cannot use a filename to set the data value of a field using rules.

For example this does not work print $node->field_photos[$node->language][0]['filename'];

Comments

hampshire’s picture

I just installed the File (Field) Paths module and can now print the filename. If I remove the File (Field) Paths module I can not once again. I am not using the File (Field) Paths module for anything and it would be great to have this functionality without the extra module having to be installed.

hampshire’s picture

removed due to updating of original post.

hampshire’s picture

Title: Need help setting data value for a list of photos » Cannot set data value using a filename
Category: support » bug
hampshire’s picture

Issue summary: View changes

Narrowed nature of problem.

tr’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

I cannot use a filename to set the data value of a field using rules.

I have no idea what this means, or how to reproduce it.

If this is still a problem in the current version of Rules, feel free to reopen the issue with details for reproducing the problem and with an export of the Rule you are trying to write so we can see exactly what you're doing.