Open Visiluna opened 7 years ago
This is a quick update to let folks know that we’re refining our icon request workflow behind the scenes, and as part of that we’re going through all open requests and filing them into several new buckets to be addressed. In this case we’ve added this issue to our new list to be created! We can’t promise any firm timelines right now, but this will help us keep track of it.
We’ll update this issue when the icon is released into the wild 🙂
This is not a request for a new icon so much as it is a request for new aliases to existing icons. It would be great if file type icons could be referenced by their corresponding file extensions.
Here's why.
Let's say I have a library of files in my CMS and I want to display the appropriate file icon next to each file shown on a page. Currently I have to write a bunch of
if...then
conditions in my template to plug the right keyword ('excel', 'word', 'pdf') into thefa-file-xxx-o
class.If file type icons could be aliased by file extension, then I could simply output
fa-file-{ myFile.extension }-o
as the class and much magic would happen! When a Word doc is displayed, the above template code would outputfa-file-doc-o
orfa-file-docx-o
, both of which would be aliases forfa-file-word-o
. It would really help make my template code more efficient.I would take as many as I could get, but of particular interest to me are doc, docx, xls, xlsx, ppt, pptx, and mp4. I also use .zip and .pdf extensively, but happily, these already work that way!
Thanks so much for keeping Font Awesome awesome!