Hi everyone,

Inside magnolia pages, I use a personalized 
/templating-kit/components/content/downloadListTable .
This component is basically a downloadList component plus it shows the 
fileExtension of each file as an icon.

Here the FTL code that I have written and used until now:
[code]           <img 
src="/.resources/file-icons/${document.fileExtension}.png">
[/code]

This works fine for each preconfigured mimetype inside magnolia.
I have added new mimetype config.
I have added relative icons inside "resources" 
#app:resources:browser;/templating-kit/file-icons/[b]ods[/b]:treeview:

(What I have already tried, trying to take advantage of the filter mapping 
inside 
#app:configuration:browser;/server/filters/servlets/ClasspathSpoolServlet/mappings/-.resources--@pattern:treeview:
 
- Inserted my icons inside  ../webapps/ROOT/WEB-INF/classes/file-icons
- Applied at the node "icon", the "Value" : 
/.resources/file-icons/[b]ods[/b].png

Result mydomain.com/.resources/file-icons/ods.png => KO (img not visualized)
[i]- while the magnolia e.g.: default 
mydomain.com/.resources/file-icons/docx.png works fine -
[/i])

So my question ([u]without involving .jar[/u]) is:
What is instead the FTL function/code that I can use to retrive the icon based 
on the "Value" of the node "icon" inside a personalized MIMEMapping eg:
#app:configuration:browser;/server/MIMEMapping/[b]ods[/b]@icon:treeview: ?

Thank you.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=ea054df7-9bc5-44e2-842d-d6633daf5635


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to