Nesting templates

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm

Nesting templates

Post by robbedoes »

I have been playing with CMSMS for a while and I'm quite impressed what can be made with it.
There is one thing about CMSMS I don't like and that's the way templates are used.

When defining several page lay outs you have to write complete templates which are largely redundant.
So I'm looking for a way to create a kind of main template and several sub templates just for the content parts.

An example:

Main.tpl
OneCol.tpl
TwoCols.tpl
ThreeCols.tpl

Where OneCol, TwoCols and ThreeCols are the ones to choose from when writing new content.

Is this possible? Will such a thing be available in a future release? Or is there another approach?

For the rest: A GREAT PRODUCT!

Regards,

Rob
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Nesting templates

Post by duclet »

You can do this with global content blocks. Put the redundant parts in a global content block and refers to it to the template.
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm

Re: Nesting templates

Post by robbedoes »

Hi Duclet,

I changed my templates and content blocks according to your suggestion.
The results are exactly what I was searching for.

Awesome!!!
Post Reply

Return to “CMSMS Core”