Forums / Developer / file downloadable in template
Didier Kalulambi
Friday 05 November 2010 2:33:25 am
I want to put a pdf file downloadable from mytemplate. if I can have the codes. thank you
Jean-Luc Nguyen
Friday 05 November 2010 9:21:00 am
Hello,
I guess you're searching for (replacing #your_pdf_attribute# by your pdf attribute):
<a href={concat( 'content/download/', $node.data_map.#your_pdf_attribute#.contentobject_id, '/', $node.data_map.#your_pdf_attribute#.id,'/version/', $node.data_map.#your_pdf_attribute#.version , '/file/', $node.data_map.#your_pdf_attribute#.content.original_filename|urlencode )|ezurl}>your link to download</a>
http://www.acidre.com
Romeo Antony
Friday 05 November 2010 12:25:57 pm
try this, replace with u r file attrbute
here file is the attribute and vald node varable contain downloadable file
<a href=content/download/{$valid_node.object.data_map.file.contentobject_id}/{$valid_node.object.data_map.file.id}/file/{$valid_node.object.data_map.file.content.original_filename }>