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'];
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
Comment #1
hampshire commentedI 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.
Comment #2
hampshire commentedremoved due to updating of original post.
Comment #3
hampshire commentedComment #3.0
hampshire commentedNarrowed nature of problem.
Comment #4
tr commentedI 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.