Hi Geoff - welcome to MODX!
Our workflow is very similar to Graeme's. We have a reference MODX site - complete with a set of standard packages and chunks - that we clone for each build. Some of the packages we use in most builds include:
- getResources
- FormIt
- Wayfinder
- SimpleSearch
- Breadcrumbs
and then we add any relevant packages to a specific build (e.g., 'Articles' if we're building a blog site). We try and keep the reference site pretty lean - that way individual sites only have what they need. We also have some 'standard' chunks we've developed and make use of in each site (e.g., a
pageCopyright chunk that creates and correctly displays a copyright message).
As for the development workflow, I always start with developing standalone HTML. This includes any CSS framework we mght be using (usually 960gs (
http://960.gs/), unsemantic grid (
http://unsemantic.com/) or bootstrap (
http://twitter.github.com/bootstrap/)). Once the HTML is complete, I transfer each [different] layout into individual templates, then work my way through each of the templates and move repeated content - such as header/footer code - into their own chunks.
Obviously the more sites you build the better the workflow gets (hopefully!). If I could give you one tip to help speed things up, it would be to prototype things like dropdown menus (using Wayfinder) & breadcrumbs and nail down the overall structure and CSS class names within the menu/submenu/menu items. Once you have this you can build the HTML with the same class names, and this will make the whole transition from HTML->MODX templates faster and easier. For instance, Wayfinder examples use
first &
last CSS class names for menu items, and although you can obviously change these (or not use them), in your early days of MODX dev, it's much easier to keep everything as per tutorials so you can follow along. Knowing the code each package outputs and using it in your HTML can save so much time!
Oh, and obviously everything (especially the HTML) is version controlled!
[ed. note: drpuff last edited this post 11 years, 2 months ago.]