I am currently building the following site: http://www.kdwebserver.co.uk/~coleago2/ ... ?page=home
It's just about finished but there is one problem which I can't make heads or tails of. Basically, under the navigation "Who we are > Coleago Consultants >" there are a list of consultants. When you click on one it takes you to their page. However, on the left side navigation it should show the third tier navigation (i.e the rest of the consultants). Instead, it is showing the Training menu.
At the top of the left navigation I have outputed the variable $h_parent which shows which navigation item is the parent of the current page to help demonstrate what is happening. The parent for the consulting pages should be 2.4 but instead it is outputting "4" (perhaps it is outputting that the parent is the 4 part of the 2.4?)
I have detailed the code used for the relevant sections of the navigation:
In the page template
Code: Select all
{hierarchy}
Parent: {$h_parent}
{cms_module module='menumanager' start_element=$h_parent template='ColeagoSide'}
Code: Select all
{assign var="startshowing" value="0"}
{if $count > 0}
<ul class="menu_horiz">
{php}
$firstRun = "yes";
{/php}
{foreach from=$nodelist item=node}
{php}
if($firstRun == "yes") {
$firstRun = "no";
{/php}
<p><img src="uploads/images/titles/{$node->menutext}.gif" border="0" alt="{$node->menutext}" /></p>
{php}
} else {
{/php}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
{php}
}
{/php}
{/foreach}
</ul>
{/if}
Thanks
Scott

