From http://booktype-demo.sourcefabric.org/joomla-25/working-with-templates/