Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
bciconextensions_share_icons | Brookins Consulting | stable |
Version | Compatible with |
---|---|
N/A | N/A |
This extension is a simple eZ Publish Platform (Legacy) share icons extension which uses the kernel override extension bciconextensions which provides a basic but time tested kernel override class modified to offer flexible solution for storing share/icon theme icons within eZ Publish extensions instead of kernel hacking your eZ Publish installation. This extension provides an example of how to make actual use of the kernel override icon system provided by bciconextensions. Great for smart developers!
This is helpful and useful for overriding or customizing the default share/icon theme(s) icon image files. With this solution you can finally add your own custom icons which match your custom content classes within an extension and prevent kernel hacking your eZ Publish Platform (Legacy) installation!
BC Icon Extensions Share Icons is licensed under the GNU General Public License.
The complete license agreement is included in the LICENSE file.
BC Icon Extensions Share Icons is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License or at your
option a later version.
BC Icon Extensions Share Icons is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU GPL gives you the right to use, modify and redistribute
BC Icon Extensions Share Icons under certain conditions. The GNU GPL license
is distributed with the software, see the file LICENSE.
It is also available at http://www.gnu.org/licenses/gpl.txt
You should have received a copy of the GNU General Public License
along with BC Icon Extensions Share Icons in LICENSE.
If not, see http://www.gnu.org/licenses/.
Using BC Icon Extensions Share Icons under the terms of the GNU GPL is free (as in freedom).
For more information or questions please contact: license@brookinsconsulting.com
The following requirements exists for using BC Icon Extensions Share Icons extension:
This solution provides the following features:
Run the following command from your project root to install the bundle:
bash$ composer require brookinsconsulting/bciconextensions_share_icons dev-master;
Required. Activate this extension by adding the following to your settings/override/site.ini.append.php:
[ExtensionSettings]
#
ActiveExtensions[]=bciconextensions_share_icons
Kernel class override extensions are not activated via ini settings. Normal site.ini extension activation settings are still required to use this extension and it's solution's custom settings.
Kernel class overrides are only able to be used if you add the following to your eZ Publish Legacy config.php configuration file.
cp -va config.php-RECOMMENDED config.php;
# Edit config.php to set 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE' to true. It should look like this:
define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true );
Regenerate kernel class override autoloads (Required).
php ./bin/php/ezpgenerateautoloads.php --kernel-override;
Optional. Clear eZ Publish Platform / eZ Publish Legacy caches (Required).
php ./bin/php/ezcache.php --clear-all;
Required. To be able to access the image files provided by an icon extension you must install the following apache mod_rewrite rule into your webserver's virtual host configuration.
# bciconextensions required mod_rewrite rules to allow access to icon extension icon image files
RewriteRule ^/extension/[^/]+/icons/[^/]+/[^/]+/[^/]+/.* - [L]
Required. To be able to access the image files provided by an icon extension you must install the following nginx rewrite rule into your webserver's virtual host configuration.
# bciconextensions required rewrite rules to allow access to icon extension icon image files
rewrite "^/extension/([^/]+)/icons/([^/]+)/([^/]+)/([^/]+)/(.*)" "/extension/$1/design/$2/$3/$4" break;
The solution is configured to work virtually by default once properly installed.
This solution allows you have to icon themes in extensions.
This means you install, activate and configure this extension in your installation and then create your own custom share/icon themes in your own custom extension.
Icons are always bound to one single repository. This makes the hole icon-engine in eZ publish uncomfortable, especially in mulit-site environments.
It is much easier to have an icon engine, behaving similar to the template engine, which is capable of loading templates out of different designs, using a fallback design and even can load things from extensions.
This solution implements the following features:
Sample configuration: To have icon themes in an extension, place them in /extensions/YOUREXTENSION/icons/YOURTHEME,
where YOUREXTENSION is the name of one of your extensions and YOURTHEME is a new theme.
Then set in [ExtensionSettings] the setting IconExtensions[] to:
IconExtensions[]=YOUREXTENSION
To make use of additional themes, name them using
AdditionalThemeList[], eg.:
AdditionalThemeList[]=blue
AdditionalThemeList[]=exotic
And make shure they exists either in an extension or in the default repository.
Please note: The directory structure of your icon extension (and it's themes) must match the directory structure conventions of the eZ Publish Legacy share/icons content provided in a default installation. The more you match the defaults expected the less ini setting configuration settings override you will require.
Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md
If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact