Comments (4)
It's not that much of a deal, but it was unclear to me. I'm using stylemanager in one project because I don't want my client to "need to remember" CSS classes. Because he's not supposed to enter anything into that field, I removed it from permissions.
I would prefer the style manager to work independently for that reason, but I understand the technical challenge. Regardless if the solution, the current situation is just confusing because one might not notice it does not work. I just enabled the field permission for my client now which isn't a problem.
from contao-component-style-manager.
Fixed in 2.5.0
from contao-component-style-manager.
Hi Andreas,
unless the cssId field is allowed to be edited, the callback methods (load_callback
, save_callback
) are not executed.
Is there a case where the user is allowed to operate the StyleManager, but CSS classes are not allowed to be entered independently?
From my point of view, we would have two options:
-
we disallow the StyleManager to be managed detached from the cssId. For example with an onsave callback for user groups and a corresponding hint.
-
the storage and preparation of the CSS classes no longer takes place via the class fields themselves, but via the
onsubmit_callback
of the Config (DCA).
That properties are written directly in the cssId field itself, should only occur if a category / CSS group would be removed from the StyleManager set. The reason for this is so that all properties would still be retained for the time being.
from contao-component-style-manager.
Okay, I will have another look at this issue in detail. It is indeed a bit confusing and a solution should definitely be found here.
from contao-component-style-manager.
Related Issues (20)
- Illegal string offset 'id' HOT 2
- Multi domain / multi theme usage HOT 7
- Contao 4.9.2 kompatibilität HOT 2
- Add base class per category HOT 2
- Cannot use object of type Oveleon\ContaoComponentStyleManager\Styles as array HOT 1
- Default value for CSS class HOT 4
- Description for style group HOT 2
- compatibility with Contao 4.12.4 HOT 9
- Attempt to assign property "styleManager" on null HOT 6
- Contao 4.13 RC2 and Stylemanager HOT 5
- Standardscope in Kategorien einstellen HOT 8
- Unable to create <optgroup> with current code HOT 3
- error in CE using v3.0.0 HOT 4
- Unbuffered queries in ObjectConversionMigration HOT 3
- Klassenauswahl Einträge doppelt / unvollständig HOT 1
- Migration message keeps appearing HOT 7
- Error opening content element HOT 3
- FR: Disable the SCSS cache HOT 9
- Bootstrap template HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contao-component-style-manager.