ContentType preview images w. icons
The package basically consists of an override to the built in "ImageUrlAttribute" that is used to specify preview images for the different contenttypes in your Episerver project.
The only difference is that with this attribute the images are generated using a configured background color, foreground color and a reference to a FontAwesome icon.
How to use
Using the built in ImageUrlAttribute, you specify the images to be presented like this:
After installing this package, you can specify it like this instead.
or with overriddes for specifying different colors and size
The defaults if nothing else is specified is of course the Geta colors as seen in the screenshot.
The images that gets generated is cached in [appDataPath]\thumb_cache\
Using the following configuration you can change the default colors:
<appSettings> <add key="FontThumbnail.BackgroundColor" value="#000000" /> <add key="FontThumbnail.ForegroundColor" value="#ffffff" /> <add key="FontThumbnail.FontSize" value="40" /> </appSettings>
How to install
Install NuGet package (use EPiServer Nuget)
Should work for Episerver 9.x and 10.x
Head over to the project site for more details and the source code.
Get back if you experience any issues etc.