Page 1 of 1

Trying to add footer

Posted: Wed Nov 30, 2011 3:47 am
by MrB
I am trying to add a footer to the The_CMS-Times full theme. I have attempted to add the footer global content block to the end of the above named template. It does work, however it shifts the original footer information to the right, placing the new footer under and to the left.

I have also noticed that in some pages it will have the footer show up on the right side just below the header.

I am currently using CMS ver 1.10.2 withe following modules installed:

CGCalendar 1.8.3
CGExtensions 1.27.2
CMSMailer 2.0.2
CMSPrinting 1.0
FileManager 1.2.0
Gallery 1.4.4
HitCounter 1.1
MenuManager 1.7.7
ModuleManager 1.5.3
News 2.12.3
Search 1.7
ThemeManager 1.1.4
TinyMCE 2.9.4

Thank you

Re: Trying to add footer

Posted: Thu Dec 01, 2011 1:41 am
by spcherub
If you post the template code or a link to a test page, it may be easier for us to provide some suggestions.

-S

Re: Trying to add footer

Posted: Thu Dec 01, 2011 1:50 am
by MrB
Well here is the template code that is used:

{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{sitename} - {title}</title>
{metadata}
{cms_stylesheet}
</head>

</__body>
{Statistics}
<div id="wrapper">
<div id="center">
<div id="head">{cms_selflink dir="start" text="$sitename"}</div>
<div id="menu">
{menu template="cms-times : cssmenu_ulshadow"}
<!-- <div id="serach">{search searchtext="null"}</div> -->

</div>
<div id="content">
<p class="h1home">{*title*}</p>
{content}
</div>

<div id="bottom">
<div id="pfad">
{breadcrumbs starttext='' root='Home' delimiter=' » '}
</div>
<div id="options">
{print script=true}
</div>
</div>
</div>
</div>
<__body>
</__html>

I hope this helps .....

Thank you

Re: Trying to add footer

Posted: Thu Dec 01, 2011 11:47 am
by spcherub
Again it is hard to pin point the exact problem with just the HTML because something in the CSS could be causing the problem. But for starters, you have one too many closing </div> tags in your template.

Here is a slightly edited version of your template code (just the body section), with two possible places you could insert the footer code - the actual position depends on how your CSS is laid out.

Code: Select all

</__body>
{Statistics}
<div id="wrapper">
	<div id="center"> 
		<div id="head">{cms_selflink dir="start" text="$sitename"}</div>
		<div id="menu">
			{menu template="cms-times : cssmenu_ulshadow"}
		</div>
	<div id="content">
		<p class="h1home">{*title*}</p>
		{content}
	</div>
	
	<div id="bottom">
		<div id="pfad">
			{breadcrumbs starttext='' root='Home' delimiter=' » '}
		</div>
		<div id="options">
			{print script=true}
		</div>
		<div id="footer1">{global_content block="footer"}</div>
	</div>
	
	<div id="footer2">{global_content block="footer"}</div>
</div>
<__body>
I have given them ids of footer1 and footer2 respectively. Retain the one that makes sense based on your CSS and delete the other.

Hope that helps.
-S