

The whole process takes about 15 minutes. The Template Variables and plugins do not apply to the web page you are viewing. This is something you really want to be careful with.Įach CSS request is treated as a separate request by ModX. Your Templates, Snippets and Plugins can break your CSS, if programmed incorrectly. Even it is good, it probably will require extra set up from you. It's now managed by the database, so its subject to database security. Often, its not enough to worry about, but its worth mentioning. For some, adding these extra resources could slow things down. Your URL requests will be based even more on your ModX performance. Your saving and editing is based on your server performance. A lot depends on how you have things set up for your site. There's always trade-offs, and with this technique it is no different. You may even set up your front-end for the editing. This is due to the nature of the statement. Your CSS is now shared between all of your Contexts if you like. You have to write them as plain text, rather than HTML, but it's still useful if you are creative. Template Variables! In previous versions of ModX, you couldn't have a Template for your CSS.Ĭhunks and Snippets, if you so desire. I place the important file comments in here, so that my CSS is smaller. You may also utilize the Summary of the resource for other things. Handy tool-tips based on the Description of the resource. You can name them whatever you like! Its the alias that is important anyway. If you're like me, file names are useful, but often not descriptive enough. Additionally there are a few other perks: Inside the url(""), just place the url to your new resource.Īside from the saving the uploading and downloading, you can now edit your CSS using any of the ModX tools. If you see the CSS code, then you've succeeded. Simply navigate directly to your new page as if it were an html document. Just copy and paste it like you normally would. You may also want to hide from menus.Īdd your CSS code. Now, make sure your new page is published. Name it whatever you would like.Īdd your alias. (Simple as that)įor the content, simply put ].Ĭreate a new resource. Here's how you do it:Ĭreate a new Template. The information to do this is sparse and inaccurate any more. Now with 2.2.2pl, it is possible with very few tricks. In previous versions of ModX (Evo and Revo), you used to have to go through tricks.
