dynamic changes to content layout.
Posted: Fri Dec 23, 2011 12:49 pm
I am using CMSMS version 10.1.1 and a commercial template with 4 pages. The website is here: http://ghdesigns.peppermgmt.com/.
The way it was coded the header and footer is the same but the content divs are all unique like this:
</__body>
<div id="wrapper">
<div id="contentWrapper">
<div id="header">
</div><!-- end of header -->
[color=#FF0000] <div id="mainHome">[/color] (This is the content div that changes depending on which page layout is desired)
<ul id="menuTab">
</ul><!-- end of menuTab -->
html code...
</div><!-- end of mainHome -->
<div class="clear"> </div>
</div><!-- end of contentWrapper -->
<div id="footer">
</div><!-- end of footer -->
</div><!-- end of wrapper -->
<__body>
On each page div mainhome changes to mainwork etc. These are the divs that hold the main content with their own background images etc. Different on each page. Is there any way to activate the content area divs depending on what kind of page is being created?
Such as if mainhome is the home page content but I need to create a portfolio page which is in the mainwork div, is the only way to do this is to create a different template for each? Is there a way to select one of the four content layouts when the page is created?
I am just trying to make it easy for my client to update and add new pages.
Thanks
The way it was coded the header and footer is the same but the content divs are all unique like this:
</__body>
<div id="wrapper">
<div id="contentWrapper">
<div id="header">
</div><!-- end of header -->
[color=#FF0000] <div id="mainHome">[/color] (This is the content div that changes depending on which page layout is desired)
<ul id="menuTab">
</ul><!-- end of menuTab -->
html code...
</div><!-- end of mainHome -->
<div class="clear"> </div>
</div><!-- end of contentWrapper -->
<div id="footer">
</div><!-- end of footer -->
</div><!-- end of wrapper -->
<__body>
On each page div mainhome changes to mainwork etc. These are the divs that hold the main content with their own background images etc. Different on each page. Is there any way to activate the content area divs depending on what kind of page is being created?
Such as if mainhome is the home page content but I need to create a portfolio page which is in the mainwork div, is the only way to do this is to create a different template for each? Is there a way to select one of the four content layouts when the page is created?
I am just trying to make it easy for my client to update and add new pages.
Thanks