I’m not at my Grav PC now, so not sure if html() produces the icon, but I believe you should call instead of file.link().html|raw call simply file.html()|raw. Also I myself use page.media.files - don’t know what page.media.data returns actually. Also, you should define icons in media.yaml for missing file types (I believe odt is one of them)
Thank you, with “page.media.files” it render something : a list of the files’ names.
But no link and no thumbnails…
And I don’t succeed in using the link() function.
What I want to get is a list of links with for each of them, a thumbnail corresponding to the type of the file…
It seems to be all right (even with odt files).
I don’t understand, but the solution was to clear the cache “compiled/config”.
Thank you for your help.