How should I structure custom page layouts? [solved]
Posted: Wed Jan 16, 2013 8:29 am
I wasnt sure where to put this question, so I put it in the lounge, if it fits better elsewhere, please move.
I am in the process of redesigning my site, and at the same time I am upgrading CMSMS to latest version, and basically re-doing everything thats not been quite right.
On my live site I have lots of pages/areas on the site where the layout is slightly different - for example, some groups of pages have custom advertising in he sidebar, some groups of pages have a sub navigation menu before the content starts and so on.
The way I have tackled this up until now is by having templates for any custom groups of pages, because of this, I have around 15 templates - a homepage template, a generic subpage template and the remainder for custom areas of the site.
Just wondering if this is the best way to do it, or if I would be better to have conditional statements all in the one template (So it displays certain content depending on page)?
I am really interested in the correct and most efficient way of doing this.
Thanks in advance.
I am in the process of redesigning my site, and at the same time I am upgrading CMSMS to latest version, and basically re-doing everything thats not been quite right.
On my live site I have lots of pages/areas on the site where the layout is slightly different - for example, some groups of pages have custom advertising in he sidebar, some groups of pages have a sub navigation menu before the content starts and so on.
The way I have tackled this up until now is by having templates for any custom groups of pages, because of this, I have around 15 templates - a homepage template, a generic subpage template and the remainder for custom areas of the site.
Just wondering if this is the best way to do it, or if I would be better to have conditional statements all in the one template (So it displays certain content depending on page)?
I am really interested in the correct and most efficient way of doing this.
Thanks in advance.