Quote from: sulligogs at Apr 07, 2008, 11:01 PMI took out any other <link rel...> so I could be sure it wouldn’t conflict with the simple blue background test CSS.
Oh OK !
Just needed to make sure I understood
Quote from: sulligogsHmmm. So it seems I got it wrong on the topic of "Use CSS as MODx document". I imagined that you would create a MODx document of type "text/css" and it would be treated just like any regular CSS file.
And that’s exactly it !
When you wrote
"Why can’t my modX installation map to the CSS type document that I created and use it?" I was under the impression that you expected something more, a "mapping process" whereas the link between a document and the CSS used for styling is through templates.
Calling a CSS document is no different than calling a CSS file (e.g, you use a link or @import with a CSS url).
The big difference is you’re calling your CSS from the DB instead of the filesystem.
Quote from: sulligogsSo why would anyone create a document of this type for in the first place? I have definitely missed something here.
Yeah, keeping real CSS files is probably better and faster. I just thought there was something new and exciting in this methodology. I feel really silly because I don’t now understand the point of this thread.
If you could enlighten me and close my curiosity on this I would be grateful davidm
I am afraid I have not been very clear (keep in mind english is not my mother language
).
The great thing about CSS as MODx document is you can use dynamic items in your CSS (use a snippet to randomize a background-image for example), use the power of chunks (I use this all the time, build my dynamic CSS by combining chunks).
Unfortunately, you can’t use TVs, since TVs are assigned to a template and our dynamic CSS have a "blank" template...
And so far, nobody has really tapped into the power of creating snippets in the context of CSS as MODx documents, but one thing I have been meaning to try is use PHx in them, which would open a lot of doors design-wise