Ok, I founded how to display related objects with my design/standard/templates/node/view/full.tpl override template.
But now, how can I display an object icon depending the related file extension ? For example, I would like to display a PDF icon before the related file name if it is a PDF file, or a JPG icon if it is a .jpg file and so on ?
Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
where "image" is the related object datatype identifier.
This code display the Name of the related file, the real name of the uploaded file and its size. But I don't control the display of these informations.
In my database I found the "binaryfile" table which contains:
Have a look at the template that displays the image attribute.
On debug mode, you can display the list of all the template used. Clear the template cache and run the page, so you'll know wich one is the template to look at (quite easy to loose track, when you override everything everywhere ;).
In fact, it is not a good idea to use the Related object datatype. It is better to use the Related objects field which is displayed at the bottom of the object edit page.
We can then access all these attributs: http://ez.no/doc/ez_publish/technical_manual/3_7/reference/objects/ezbinaryfile
But I have a trouble with "concat".
$my_related[1].data_map.file.content.filepath
gives me var/plain/storage/original/application/8c3d8498edb91c86d46c6170d564dc90.pdf