Thursday 18 August 2011 7:28:55 am
» Back to Roadmap
Description
For most developers, workflow when creating new templates & classes is following:
- create class
- edit override.ini.append.php to add mapping to views of this class (full, line, etc.)
- create files
Step 2 is cumbersome and can be simplified with "convention over configuration" approach known from modern web frameworks such as RoR.
Instead of requiring user to edit "overrides" file, let system search for template with id of class in folder with name of view in your current design folder ("override/templates/VIEW/CLASS_ID.tpl").
For example, assuming I just created class "book" I would go to my design folder and inside "override/templates/full" and "override/templates/line" I could create files "book.tpl" which are default for my class.
Current mechanism override based mechanism can be still used as fallback option.