File Type Icons

Feb 15, 2016 at 1:19 AM
Hello,

I was wondering if there's a way to get a file type icon in a template? I've made a simple file list, and I know DNN has the built in icon providers, but I'm not sure how to best get the file type from 2Sxc.

Any ideas?

Thanks,

Mike
Coordinator
Feb 24, 2016 at 10:25 AM
The nice solution
Basically you would have to create a custom input type - which would also load the font as a resource - and give the user this to choose from.

The quick solution
Create a dropdown with a list of icon names (so no preview in the edit-dialog), then use the icon-name in your template. That's what we did for the content-icons here https://www.2sic.com/web