Hi all,
I’m doing a little survey about the different approaches to building MODX templates and would love to hear input from everyone possible. But first a few guidelines:
- Please read what others have written before posting in case you duplicate an idea. Also avoid posting to say you agree or disagree unless you also include justification or a better method in your post.
- Explain the approach you take when converting a HTML template into a MODX one.
- Try to include as much detail as you can about how you decide what TVs to create and how to chunk things off (especially important for sites with more than 1 similar template).
Hopefully we can all improve our template creation skills through this.
So generally my setup is in github with my MODX-Boilerplate.
Additionally I usually set up several TVs and chunks for conditional content.
TVs for client editing, chunks for fix code (maybe localized, too).
I usually use Chunks for Head, header and footer.
TV’s for extra columns, JS and client specific needs.
Just about to embark on some Blog style templates for MODX general release.
Trying to decide if it is best to create one combined template or separate for my first attempt at a HTML5 template.
I have added the ability to change the color scheme with the use of less.js and the color selection from a system site variable. Details in my signature.
EDIT
Trying to decide how to layout my file structure for using both Packman and github for Template publishing. (Packman does not require chunk and snippet folders I use on github.)
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
I always use chunks for header, sidepanel, footer , navbar and such.
Then i also create a tv in the head and call it xtraScript. The intention with this one is to be able to add some extra jquery on a page. I also create a tv in the body tag. Making sure i can style the pages differently if i need to.