We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13736
    • 345 Posts
    I was thinking it would be nice to create a style sheet manager.

    Maybe put another tab in the "Manage Resources" area that we could save style sheets into. Something similar to the way snippets or chunks work so that they could be easily inserted into the template.

    And for the A+ grade wite up a browser checker and a way to use different style sheet code based on which browser is detected.

    Then finaly, a date changing method where we ccould set different style sheets to be used for different holidays or date ranges. Such as Christmas, Easter, Valentines Day, etc.
      • 6726
      • 7,075 Posts
      A while ago I put up the same kind of request, coming from Textpattern I was used to have a tab for Stylesheets. I found using the file manager in MODx was annoying going through the folder structure each time (assets\templates\....). Plus, I’d dream of syntax highlighting (though it would be sugar coating here...).

      In the meantime, I have learn to use the "stylesheet as document" method (e.g create a new document with text/css as content-type and _blank as template, then link it this way : <link rel="stylesheet" type="text/css" href="[~id~]" />, with id being of course the id of your css document).

      The benefit of this method is that MODx parses your CSS : this means you can use... chunks in your stylesheet, and it’s a very powerful method to build modular css grin

      The other benefit is it’s easier to work with your CSS, since you edit them either directly as a document or like me, you edit the css chunks you have created.

      I use it ever since !

      More detail here :
      http://modxcms.com/forums/index.php/topic,2343.0.html
      http://modxcms.com/forums/index.php/topic,3068.0.html
      http://modxcms.com/forums/index.php/topic,3052.0.html
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 28373
        • 204 Posts
        Wow! I missed that in the documentation, modular css! that’s just too much, I often include a personal library of css files for form elements, borders (rounded corner borders), and menus (dropdowns) - and link to them if they’re needed.

        So, now I can just create chunks for those, give them a name and description, and include them in the css page... that’s so cool!
          • 27385
          • 15 Posts
          I had never thought of using the idea of modular CSS. What a great idea!

          ModX is so simple . . . and yet so powerful smiley

            • 6726
            • 7,075 Posts
            In this area, we simply have no competitor... at least not yet !

            But it’s really an amazing piece of code, yes, with so much flexibility, it’s thought out for designers !

            MODx, a designer’s dream ?
            Well, not there yet but closer to home than ever grin
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l&#39;outil id
              • 28373
              • 204 Posts
              It might not be there yet, but it’s already too far ahead of everything else to be surpassed - and I haven’t been using it for very long, don’t understand all the fundamentals . . . but as a designers dream it’s definately been well thought out, as a vision for the future the web’s been well anticipated - 12 months from now with more tutorials, clearer documentation, more snippets, chunks and more sample sites with the installer - it’ll corner the market without a doubt!

              Where do we buy shares shocked



                • 18126
                • 87 Posts
                Quote from: davidm at Mar 14, 2006, 10:06 AM

                Plus, I’d dream of syntax highlighting (though it would be sugar coating here...).
                Me too! smiley I’m not sure if an web editor with syntax highlighting exists, but I love it on eclipse, gedit, crimson and other IDEs/editors.

                EDIT: oh, they do exist. I wonder if the Helene integration has gone anywhere...

                Thanks for the CSS tip. smiley
                  • 6726
                  • 7,075 Posts
                  Quote from: mandrl at Mar 25, 2006, 12:12 PM
                  EDIT: oh, they do exist. I wonder if the Helene integration has gone anywhere...Thanks for the CSS tip. smiley

                  Duh ? There is someone working on that, Helene integration ??

                  Anyway, I didn’t know about Helene, nice pointer thanks a lot !
                  The community being what it is, I wouldn’t be surprised something like that would come up one day grin
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l&#39;outil id
                    • 18126
                    • 87 Posts
                    Quote from: davidm at Mar 25, 2006, 01:27 PM
                    Duh ? There is someone working on that, Helene integration ??
                    Umm... probably not. I got the impression that someone had tried it. Sorry, wrong choise of words...

                    Hopefully we’ll get Helene or some other editor implemented. smiley
                    • I would be a bit nervous over having any more of my file system world-writable, especially something as important as my stylesheets. Image folders are bad enough. If all webhosting services used suexec of some kind so that the php scripts ran as the site’s user rather than the Apache user it wouldn’t be a problem.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org