axllent/silverstripe-favicons

Simplistic templating for adding favicons for multiple devices

Installs: 2 643

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 1

Open Issues: 0

Language:Scheme

Type:silverstripe-vendormodule

2.0.2 2023-06-14 02:56 UTC

This package is auto-updated.

Last update: 2024-04-14 04:36:59 UTC


README

An extension to allow an easy templating system to add favicons for multiple devices.

Requirements

Generate your favicons using favicon-generator. This will provide you with a zip file of all the different files required.

You can use other online sources, however due to the different file naming of the different sites, you may have to create your own template with the appropriate code.

Usage

Copy the generated icons to a path in your project's public folder (eg: favicons/). Then in the <head> of your Page.ss, add the following code:

$Favicons("favicons/")

The favicon template code is cached, so if you change your favicon path then you must do a ?flush.

Requirements

  • SilverStripe ^4 || ^5

Installation

composer require axllent/silverstripe-favicons