There are a lot of modules but it looks a bit of a mess. For a large portion this is due to the variety of icons.
Is it a good idea to start a list that consolisates this somehow? It could be as simple as a table with icon name, htlm code, link to the repo (like Fontawesome) and function. It would not be a mandatory prescription IMO but if you are working on the look & feel of a module, there would be a reference.
Curious to hear/read what your opinion is on this one.
I think that's a great idea, but we should consider same action for DNN Platform itself. If we're gonna standarize, let's do it from the base ;-)
Best, Francisco
I agree that it would be good if this would be somehow standardized and I agree is a bit of a mess right now. But I'm not sure picking an existing "fixed" icon set is the best option as in that case you will have the same issue in a few years. I would to make those icons token based so you could eventually change the icon set.
[Icon:Edit] [Icon:Save] Etc.
But it should be super simple to implement or else developers will keep using their own solution IMO.
We already have a built-in icon set and API in DNN. It's extensible too, so it can be replaced. I've used it ever since inception in my open source extensions.
Unfortunately, some extensions were built before this existed, and those that have been built since either have decided to not use this feature or didn't know it existed. :)
Posted By Will Strohl on 09 Jul 2019 01:57 PM We already have a built-in icon set and API in DNN. It's extensible too, so it can be replaced. I've used it ever since inception in my option source extensions.
We already have a built-in icon set and API in DNN. It's extensible too, so it can be replaced. I've used it ever since inception in my option source extensions.
Can that API support SVG graphics or is it just for raster formats? (GIF/PNG/JPG)
Posted By Olly Hodgson on 09 Jul 2019 04:47 PM Posted By Will Strohl on 09 Jul 2019 01:57 PM We already have a built-in icon set and API in DNN. It's extensible too, so it can be replaced. I've used it ever since inception in my option source extensions. Can that API support SVG graphics or is it just for raster formats? (GIF/PNG/JPG)
AFAIK only bitmap, also I'm not sure a lot of developers actually know about it.
So far, there isn't SVG support, but that could be changed in the future. :)
Yeah, that's why I have a preference for inline SVGs for icons (as opposed to icon/dingbat fonts).
As you say, you need to know / set the sizes in advance, but most icon sets I've used tend to supply a square SVG image, so as long as you supply the width/height in the HTML and/or the CSS you're golden.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.