Several slightly varied templates
Posted: Wed Dec 03, 2008 9:00 pm
I am using CMSMS 1.5.
I have several templates that are very similar, except for some additional elements near the {content} block.
I had thought to take the top half of the template and make a GCB called 'header' and take the bottom half and make a GCB called 'footer' then sandwich the content block, along with the slight variations, between 'header' and 'footer'. I read that this is the way to do it.
However, when I make the header global content block, my , , , etc. tags, and doctype are all stripped. Do I still have to put that on each template?
I searched the forum and couldn't find any information on this, which is surprising because I am sure someone must have run into this before. Perhaps I am searching for the wrong words.
Is there any better way to 'nest' templates, or create a fake inheritance? If I could run the output of one template through the {content} of a second template, that would also work well.
Thanks,
Nate
I have several templates that are very similar, except for some additional elements near the {content} block.
I had thought to take the top half of the template and make a GCB called 'header' and take the bottom half and make a GCB called 'footer' then sandwich the content block, along with the slight variations, between 'header' and 'footer'. I read that this is the way to do it.
However, when I make the header global content block, my , , , etc. tags, and doctype are all stripped. Do I still have to put that on each template?
I searched the forum and couldn't find any information on this, which is surprising because I am sure someone must have run into this before. Perhaps I am searching for the wrong words.
Is there any better way to 'nest' templates, or create a fake inheritance? If I could run the output of one template through the {content} of a second template, that would also work well.
Thanks,
Nate