submenu gets status active random


Author Message
Peter

Posted: 3/27/2013
Quote message 

:(
Hi,
Have created a joomla 3.0 template with artisteer 4.1.
everything looks fine but on my vertical menu the subitems get status ' active' random by default.
the site is http://hebsieraden.testwepb.nl
if the second menu 'hangers' is opened a submenu item 'pendule' is highlited.

I think the problem is lying in the template override of the menu .
unfortunately im not a programmer and have not been able to isolate the problem.

the peace of code from override mod_menu --> default.php applying to the artvemnu class is this:

else if (0 === strpos($params->get('moduleclass_sfx'), 'art-vmenu') || false !== strpos($params->get('moduleclass_sfx'), ' art-vmenu')) {
$menutype = 'vertical';

$start = $params->get('startLevel');

// check if it is necessary to render subitems:
$subitems = $GLOBALS['artx_settings']['vmenu']['show_submenus'] && 1 == $params->get('showAllChildren');
// true - skip the current node, false - render the current node.
$skip = false;
// limit of rendering - skip items when a level is exceeding the limit.
$limit = $start;

echo '<ul class="art-vmenu"' . $tag . '>';
foreach ($list as $i => & $item) {
if ($skip) {
if ($item->shallower) {
if (($item->level - $item->level_diff) <= $limit) {
echo '</li>' . str_repeat('</ul></li>', $limit - $item->level + $item->level_diff);
$skip = false;
}
}
continue;
}

$class = 'item-' . $item->id;
$class .= $item->id == $active_id ? ' current' : '';
$class .= ('alias' == $item->type
&& in_array($item->params->get('aliasoptions'), $path)
|| in_array($item->id, $path)) ? ' active' : '';
$class .= $item->deeper ? ' deeper' : '';
$class .= $item->parent ? ' parent' : '';

echo '<li class="' . $class . '">';

// Render the menu item.
switch ($item->type) {
case 'separator':
case 'url':
case 'component':
require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item->type);
break;
default:
require JModuleHelper::getLayoutPath('mod_menu', 'default_url');
break;
}
if ($item->deeper) {
if (!$subitems) {
$limit = $item->level;
$skip = true;
continue;
}
echo '<ul' . ($subitems && in_array($item->id, $path) ? ' class="active"' : '') . '>';
}
elseif ($item->shallower)
echo '</li>' . str_repeat('</ul></li>', $item->level_diff);
else
echo '</li>';
}
echo '</ul>';
}

Who can help me to identify the problem?
help would be much appreciated.

kind regards, Peter
 
peter

Posted: 3/27/2013
Quote message 

is there a tech savy user / programmer who can take a look at my problem?
 
flo

Posted: 4/25/2013
Quote message 

Hi Peter
Were you able to fix this problem? I have the same...
Cheers, flo
 

Reply


NAME *
EMAIL
SMILIES :-) :( :-D 8-) :*) :-/ :-{} :-X :-O :-@ O:) :-P :-< :-( :-| ;-) 
CODES [Quote] [B] [I] [U] [Code] [IMG] 
BODY *  
VALIDATION *