Quote from: DorianJ at Oct 20, 2006, 12:47 AM
This page (http://modxcms.com/template-basics.html) says, "Let’s examine a simple, two-column template." and includes the code with explanation for creating the template.
Then it says, "Here is a simple CSS file to control our template’s appearance:" and it includes the code WITHOUT an explanation for creating the stylesheet, saving the stylesheet, nor any information about how to attach the stylesheet to the template.
Am I just caught up in my Dreamweaver world and missing something obvious?
Perhaps. MODx is a content management tool for web developers and designers that want total control of the output of their site, especially the (X)HTML markup, and the CSS used to style the markup. This is something traditionally very difficult to achieve with most open source content management offerings. Though we certainly don’t discourage tips, tricks, samples, and free/open-source templates from being shared within this community, it should be clear to all users of MODx that the purpose of the product and this community is NOT to teach users the skills they will need in (X)HTML, CSS, PHP, or Javascript to create a great web site, but rather to help guide users in how to use the MODx framework in conjunction with those skills to facilitate the development and life-cycle management of a web site or even a small web agency. You can use MODx to prototype, create reusable sets of components you can make use of in future sites, deploy a small marketing site while you develop and full-features intranet site tailored to the needs to the project, or just make it so your sales manager can update a small section of your site without destroying the really nice layout and styling you painstakingly crafted to exacting web standards.
In any case, there is a new
wiki for documentation that has been started recently; perhaps someone can clarify any MODx specifics with regards to the process of linking to style sheets some more there. But there’s really no tricks to including or creating stylesheets for MODx. They are just regular CSS stylesheets like you would create and include to style some good markup you created in Dreamweaver (source mode of course). And the default content installed with MODx includes a template with a great examples of how to link the CSS in with the proper paths and such (just always consider yourself in the root of the site when working on a template).
I hope that helps clarify why the documentation does not go into more detail about the CSS used in that example.