Template Inheritance
Permalink
Is there such a mechanism in c5? Say I have a lower level left hand column page template (page type). Now I want to create a variant for sub pages of this template. But I only need to change the class of the content wrapper to something like
Instead of duplicating the whole template and changing one line, is there a way to inherit or extend the original left hand template? Can I designate an area or block with an ID and override in my new template? PHP Smarty 3 has this functionhttp://www.smarty.net/inheritance...
I'm just getting into the c5 way of thinking, so maybe I'm missing a blindingly obvious trick
cheers
<div class="wrapper level2">
Instead of duplicating the whole template and changing one line, is there a way to inherit or extend the original left hand template? Can I designate an area or block with an ID and override in my new template? PHP Smarty 3 has this functionhttp://www.smarty.net/inheritance...
I'm just getting into the c5 way of thinking, so maybe I'm missing a blindingly obvious trick
cheers
JordanLev's Designer Content might be something of interest to you. http://www.concrete5.org/marketplace/addons/designer-content/...
Thats at a block level isn't it? I'm thinking more at a lower level page template...
Maybe detecting at what level the current page is at in the page tree and generating the right markup in a conditional...is there a way to get a page's level?
thanks!
Maybe detecting at what level the current page is at in the page tree and generating the right markup in a conditional...is there a way to get a page's level?
thanks!
Someone was working on a smarty based theme over the last couple of months. Posted several questions of the forums. So you could search back and contact them.
The trouble with page types in a theme (or anything else that is a view in c5) is they are not classes like controllers or models, so don't automatically work with the same inheritance mechanisms.
The trouble with page types in a theme (or anything else that is a view in c5) is they are not classes like controllers or models, so don't automatically work with the same inheritance mechanisms.