For those who look how to code templates into a CMS you may want to check the I-Metrics CMS a content management system that I put together (based on osCommerce) but it's very light on the front end and has extensive administration features. It includes only content management features. I uploaded the package in sourceforge.net and on my domain, you can see an online demonstration here http://demos.asymmetrics.com I used the media template as the stock template of the CMS. Media website template It was fairly easy to do the integration and the final web-front is very close to the actual design. The file package can be downloaded from the release section of the above link or from sourceforge.net I-Metrics CMS | Get I-Metrics CMS at SourceForge.net Although there is no template system and the php code is mixed with HTML the number of files to modify and the framework itself is tiny and easy to learn.