Giter Site home page Giter Site logo

Comments (4)

aschempp avatar aschempp commented on May 27, 2024 1

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.

doishub avatar doishub commented on May 27, 2024 1

Fixed in 2.5.0

from contao-component-style-manager.

doishub avatar doishub commented on May 27, 2024

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:

  1. we disallow the StyleManager to be managed detached from the cssId. For example with an onsave callback for user groups and a corresponding hint.

  2. 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.

doishub avatar doishub commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.