oveleon/contao-component-style-manager
Manage CSS classes in Contao as reusable style groups. Define, organize and apply component styles consistently in the backend, simplify editorial workflows, and keep templates clean by selecting predefined class sets for content elements and modules.
child_record_callback and replace it with a label_callback by @fritzmg in https://github.com/oveleon/contao-component-style-manager/pull/133Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.12.0...3.12.1
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.11.4...3.12.0
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.11.2...3.11.3
Allow merging yaml configuration files without a numeric id and pid into existing archives 34c6fbb3a0bc7ad00533dcc6aea8dafed5e24a8e
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.11.1...3.11.2
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.11.0...3.11.1
[!IMPORTANT] The XML Import and Export feature has been deprecated as of this version and will be removed in the future.
You should start using the bundle configuration instead: https://github.com/oveleon/contao-component-style-manager/blob/main/docs/BUNDLE_CONFIG.md The exported XML file can be named
style-manager-whatever.xmland thrown in the templates folder to work
Added experimental YAML configuration support ecc94753da0e592b38e6c3751ae73da03f2c1f4f
# /templates/style-manager-custom.yaml
my_archive_identifier:
title: GroupTitle
groupAlias: GroupAlias
sorting: 100 #sorting in the widget
children:
my_child_alias:
sorting: 100 # sorting in the widget
title: Title in my widget
description: My Description
cssClasses:
color-red: Red # First is the class, second the label
color-blue: Blue
color-green: Green
color-yellow: Yellow
cssClass: long # Backend widget class
chosen: true # activates chosen
blankOption: true # allow blank option
passToTemplate: true # pass the value to the template
extendFormFields: true # show in form fields
formFields: ["fieldsetStart"] # form fields
extendContentElement: true # show in content elements
contentElements: ["headline", "text"] # content elements
extendModule: true # show in modules
modules: ["navigation", "customnav"] # modules
[@internal](https://github.com/internal) afb5c29faab56c97e1f37b294ddf0edcd75ec84b 3fa65f25cb4dfac22050d81272ca4e0ea5557b6bFull Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.10.0...3.11.0
--sm-i: 3 or by using the widget classes .w33Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.5...3.10.0
Contao 5.6 by @zoglo in https://github.com/oveleon/contao-component-style-manager/pull/123Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.5...3.9.6
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.4...3.9.5
Correctly attach the label to the select element 8a682aa2c2855752b2ec115d0aa5ef05684aa224
Initialize choices on the wrapper element contao/core-bundle ^5.5.12 - Bugfix for forwards compatibility b9dac43e79b3cb378355c374836fe01a195baae6
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.3...3.9.4
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.2...3.9.3
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.1...3.9.2
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.9.0...3.9.1
Rewrite the stylemanager widget to be rendered with twig fc21b823b04e7046890425b6811d0efb9c726e15
Use JavaScript instead of the checkbox hack f43ad8c919a0a478d09019320b104f926c0cf7cd
Allow the style manager groups to be keyboard focusable (buttons instead of an inaccessible checkbox hack)
Using DI when possible 93638cbe337e49d024448dc6a02612570ddd4b5f
Using service tags when possible 307517ddeb20d7a5e8daf7d5be17ca86838eb551
Load the backend css via AddBackendAssetsListener 36c13754925f0b23d224af87e0a33fecb713e27a
Dropped Contao 4.13 and PHP 8.1 support 06f12fb672bbfc7e9ce4bc53eab85f4b2dd6a302
Allow undefined stylemanager titles within the import controller (bundle configuration files don't need one) 2393783a7dac60332d850846b308993bf0d0578a
Fix many typos 062fc89bb4a67d8a7e009ff457fe7b73bcad8a9a 7c74ec6c4dfe6bd971799185a350e5953c92bd2a
Added w16, w25, w33, w50, w100 for modifying the width on desktop devices 46b7db08d6e05d3e35953969855db6c31182991d a6b688cd1e3b5aa8657297ce672140753167f0f8
AddStyleManagerPaletteEvent with skipPalette to not render the StyleManager Widget at allExample:
<?php
namespace App\EventListener;
use Oveleon\ContaoComponentStyleManager\Event\AddStyleManagerPaletteEvent;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
use Symfony\Contracts\EventDispatcher\Event;
#[AsEventListener(AddStyleManagerPaletteEvent::class)]
class AddStyleManagerPaletteEventListener extends Event
{
public function __invoke(AddStyleManagerPaletteEvent $event): void
{
$table = $event->dc->table;
$palette = $event->palette;
if (
'tl_module' === $table && in_array($palette, ['root_page_dependent_modules', 'unfiltered_html', 'html'])
|| 'tl_content' === $table && in_array($palette, ['unfiltered_html', 'html', 'accordionStop', 'sliderStop'])
|| 'tl_form_field' === $table && in_array($palette, ['html', 'fieldsetStop', 'hidden', 'hiddencustom'])
) {
$event->skipPalette();
}
}
}
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.7.4...3.8.0
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.7.3...3.7.4
switchToEdit for style manager items by @fritzmg in https://github.com/oveleon/contao-component-style-manager/pull/114Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.7.2...3.7.3
data-controller attribute once within the style-manager widgetFull Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.7.0...3.7.1
This release provides forwards compatibility for the latest Contao 5.5 version
^4.13 and ^5.3 onlyContao 5.5 FC
choices within the stylemanager dropdown fieldsFull Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.6.2...3.6.3
V3.6 introduced strict typing, the troublesome occurrences are now properly checked or casted
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.6.1...3.6.2
$dc->id for slug generator by @fritzmg in https://github.com/oveleon/contao-component-style-manager/pull/107 (fixes #106)Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.6.0...3.6.1
PHP ^8.1 only
Unlock Symfony 7
Added missing shadow dependencies
Use PHP Attributes instead of annotations a9fccfefefeae12ec0d609b9bea7b02465e76ff6 43f733aefc3093182e96bae9b6b30509bb599833
Register routes directly to allow Symfony 5,6 and 7 simultaneously b19e8b215ccb2da2289d03ddf691b0ff340b2994
Type safety for PHP errors 9e463500604afec7fa9e034fad1e2277ffd61d47
Fix other PHP 8 warnings eb8bfd208dc45a70c3d1b842f31c981e676ddd95
Add forwards compatibility for edit and children icons a61cb2ff7a831ff4d36e418c1d666913879885e7
Hide the style manager widget legend again (^C5) eda7c41ee7a231c28b55549b85caf1ba29a475fe
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.5.3...3.6.0
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.5.2...3.5.3
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.5.1...3.5.2
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.5.0...3.5.1
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.4.3...3.5.0
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.4.2...3.4.3
Full Changelog: https://github.com/oveleon/contao-component-style-manager/compare/3.4.1...3.4.2
How can I help you explore Laravel packages today?