Tuesday 22 August 2006 1:45:00 pm
Hello Daniel
the code that Kristof posted returns a valid img tag so just put it wherever you want. Usually that would be in front of wherever you output the name of the file. How you get it in the same line depends on your stylesheet.
Example:
<a href="link to your file"> {$node.data_map.file.content.mime_type|mimetype_icon($icon_size)} {$node.data_map.file.content.original_filename} </a> This example assumes that your node has an attribute of datatype file which is called file. If you need more information first check the links provided by Kristof -they should tell you everything you need to know. Also have a look at some of the templates for files, the most useful for me were the ezbinaryfile.tpl in the folder datatypes. Greetings from Luxembourg Claudia
|