the problem is happening with the subnav occuring within the primary nav
Code: Select all
<li id="services"><a href="http://www.techsinthecity.co.uk/devsite/index.php?page=services" title="Services"> <span>Services</span></a>
<ul>
<li id="asubpage"><a href="http://www.techsinthecity.co.uk/devsite/index.php?page=asubpage" class="active" title="A Sub Page"> <span>A Sub Page</span></a></li></ul>
</li>
as the subnav occurs between the primary nav tags for some reason it forces the nav image down. Not sure why this isn['t causing a problem on the main page though actually, so maybe that's not the issue. the template code for the subpage is as follows:
Code: Select all
<!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" xml:lang="en" lang="en">
<head>
<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
</head>
</__body>
<div id="wrapper">
<div id="innerwrapper">
<div id="header">
{global_content name='header'}
</div>
{* Start Content *}
<div id="contentservicessub">
<div class="column1">
<img src="uploads/images/assets/subnav_services.gif" alt=" " width="162" height="53" />
{menu template='simple_navigation.tpl' start_level='2' collapse='1'}
</div>
<div class="column2">
{content block="column2 H1 Heading"}
{content block="column2 P Introduction"}
{content}
</div>
<div class="floatclearleft"></div>
</div>
<div id="footer">
{global_content name='footer'}
</div>
</div>
</div>
<div id="base"></div>
<__body>
</__html>
and the code for my primarynav - which is pulled in via the {global_content name='header'} tag is:
Code: Select all
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true}
<li id="{$node->alias}"><a href="{$node->url}" class="active" title="{$node->menutext}"> <span>{$node->menutext}</span> </a>
{else}
<li id="{$node->alias}"><a href="{$node->url}" title="{$node->menutext}"> <span>{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
let me know if you need any moer info. Thanks for trying to help - this is doing my head in...but it is late, so that's understandable.