I've added a very simple support to have font-awesome icons in Episerver edit-mode dropdown a while ago. Now a co-worked of mine pinged me and said: Why no nuget?!
So, this repo got published to Epi nuget (with the ugliest icon ever).
To use it, add a property with the correct UIHint and a path to file:
[UIHint(AwesomeUiHints.AwesomeDropdown)] [AwesomeDropdownPath(Path = "three-icons.xml")] public virtual string ThreeIconsChooser { get; set; }
The format for the file is as follows:
<?xml version="1.0" encoding="utf-8" ?> <resources> <string name="fa-glass"></string> <string name="fa-music"></string> <string name="fa-search"></string> </resources>
If you have any issues or feature requests, do add them to github.
Copyright: Image taken from font-awesome site
LEAVE A COMMENT