CP Site Icons plugin for Craft CMS 3.x
Display site icon when editing entries, to be able to distinguish between different sites.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
Open your terminal and go to your Craft project:
cd /path/to/project
Then tell Composer to load the plugin:
composer require nthmedia/cp-site-icons
In the Control Panel, go to Settings β Plugins and click the βInstallβ button for CP Site Icons.
You can choose if you want the site handle or site language as key to distinguish your sites. This key is also the key of the icons array in the config:
Create
/config/cp-site-icons.php
and add your configuration, for example:
<?php
return [
'icons' => [
'de' => 'π©πͺ',
'de-AT' => 'π¦πΉ',
'en' => 'π¬π§',
'es' => 'πͺπΈ',
'fr' => 'π«π·',
'nl' => 'π³π±',
'nl-BE' => 'π§πͺ',
],
];
Credits
- Brought to you by NTH media
- Based on a code snippet of Dennis Frank, shared at DotAll 2021.
- Installation Instructions
To install this plugin, copy the command above to your terminal.
- Active Installs
- 776
- License
- MIT
- Last release
- May 4, 2022
- Activity (30 days)
- 0Closed Issues0Open Issues0Merged PRs0Open PRs