Yay, great module! I've been looking for a way to enable content editors easily insert links to global documents. Would you please be so kind and help me setting up the following scenario:
I have a content type named Document
. One of its fields named field_doc_file
is the actual file.
The reason I'm wrapping documents into a content type, as each one has to carry some description, category tag, icon, and all be listed by a View. Something that a plain file stored on FTP won't offer me.
Now, I have node/123 being an instance of type Document, where the actual file is the current price list. Currently it's - let's say - pricelist_2012.pdf
. Next year I would create a new revision of the same node and upload pricelist_2013.pdf
, and so on.
However I want to enable the content editor to insert text that points to the current file, wherever they edit content, as in:
"Please refer to our <a href="[current-pricelist-token]">current pricelist</a>."
So basically I want here to be able to define a token which always points to:
url
of field_doc_file
of current revision
of node #123
Is that possible? Would you please instruct me how to do that?
Closed: outdated
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.