Does anyone know how to display in a node, for a single attached file, the path, original filename, and translated file name in a node in such a way that then one or more input filters coupld be applied to change how those three values may appear? For example:

node#1 contain the text:
==================
This is a node that contains one attached fieldfield file

this_is_a_attached_document.doc <==this would be the file that is attached
==================
I would then want to be able to display

==================
This is a node that contains one attached fieldfield file

files/
this_is_a_attached_document.doc
this_is_a_attached_document_1.doc (stored file name is different because another file named "this_is_a_attached_document.doc" was uploaded on another node)

this_is_a_attached_document.doc <==this would be the file that is attached
==================

at this point then a filter say a custom filter could then make some text replacements such as applying capitalizations:

==================
This is a node that contains one attached fieldfield file

Files/
This_is_a_attached_document.doc
This_is_a_attached_document_1.doc (stored file name is different because another file named "this_is_a_attached_document.doc" was uploaded on another node)

this_is_a_attached_document.doc <==this would be the file that is attached
==================

and then continue to apply any other additional input filters as needed. I had looked at token filter, but it does not seem to be able to access node tokens nor custom tokens (using the custom tokens module) Any help or suggestions would be appreciated.

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity. I do not provide support on how to write custom code in the issue queue.