EPi.Libraries.Favicons 5.2.0
EPi.Libraries.Favicons
By Jeroen Stemerdink
Instructions
Add the following attribute to the ContentType you use for your settings
[ContainsSettings]
Add properties to the ContentType you use for your settings and add the attributes shown below.
[WebsiteIcon]
[UIHint(UIHint.Image)]
public virtual ContentReference Favicon { get; set; }
[MobileAppIcon]
[UIHint(UIHint.Image)]
public virtual ContentReference AppIcon { get; set; } >> use if your site is webapp capable
[ThemeColor]
public virtual string ThemeColor { get; set; } >> defaults to "#1E1E1E"
[TileColor]
public virtual string TileColor { get; set; } >> defaults to "#1E1E1E"
[ApplicationName]
public virtual string ApplicationName { get; set; } >> defaults to the name in the site definition
[ApplicationShortName]
public virtual string ApplicationShortName { get; set; } >> defaults to the name in the site definition
Add ImageResizer package to your solution or create your own resizing service.
You can create your own service by implementing IResizeService or ResizeServiceBase
Add the following to your header in your _Root,cshtml file to render the markup:
@{
await Html.RenderPartialAsync("_Favicons");
}
Enable MVC Attribute Routing, you will need to upgrade to MVC 5+
Thanks
to Rehan Saeed for some of the ideas.
Powered by ReSharper
Showing the top 5 packages that depend on EPi.Libraries.Favicons.
Packages | Downloads |
---|---|
EPi.Libraries.Favicons.ImageResizer
Image resizing service for use within EPi.Libraries.Favicons
|
3,642 |
EPi.Libraries.Favicons.ImageProcessor
Image resizing service for use within EPi.Libraries.Favicons
|
44 |
EPi.Libraries.Favicons.ImageSharp
Image resizing service for use within EPi.Libraries.Favicons
|
29 |
Update for Episerver CMS 12