Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Megamenu and split menu problem

Featured Lock Resolved
I have problem with megamenu, custom class from helix2 framework only appear with megamenu items. I want to get custom class with splitmenu also, but helix2 only show custom class with megamenu.

This function responsible for get and put custom class for each menu item with megamenu only!

function genClass ($mitem, $level, $pos) {
$iParams = new JObject(json_decode($mitem->params));
$active = in_array($mitem->id, $this->open);
$cls = '';
$cls .= "menu-item h_navigation_item" .($active?" active":"").($pos?" $pos":"");

if ($this->_menu=='mega') {
if (@$this->children[$mitem->id] || ($mitem->megaparams->get('subcontent')=='modules') || ($mitem->megaparams->get('subcontent')=='positions') ) {
if ($mitem->megaparams->get('group')) $cls .= " sp-menu-group";
elseif ($level < $this->helix->Param('endlevel')) $cls .= " parent ";
}

if ($mitem->megaparams->get('class')) $cls .= " ".$mitem->megaparams->get('class');

} else {
if (@$this->children[$mitem->id] && $level < ($this->getParam ('endlevel'))+1) $cls .= " parent";
}
return $cls?"class=\"$cls\"":"";
}


when I change

if ($this->_menu=='mega')

with

if ($this->_menu=='split')

the page gone blank and not working.

how to fix this problem? thanks

5 Answers

Toufiq - Staff

More than a month ago #Permalink
Hi, Split menu & dropline feature is not available in our template. Please use mega menu. Thanks

bungran

More than a month ago #Permalink
Hello
I know that custom class only available with mega menu
but my Case need split menu, and need add custom class for each menu items.

how to do that?

Toufiq - Staff

More than a month ago #Permalink
bungran wrote:

Hello
I know that custom class only available with mega menu
but my Case need split menu, and need add custom class for each menu items.

how to do that?


Thanks for your reply. Split menu are don't work in our template. This feature are not available in our template. Thanks

bungran

More than a month ago #Permalink
but already available with my template and have all functions in menu.php class?
check attached file this feature all works fine.

Attachments (1)

  • Untitled.png
    Untitled.png 22.5 KB


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 124
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 96
Toufiq

Toufiq

Total Accepted Answers: 23
Pavel

Pavel

Total Accepted Answers: 4
Al Mamun

Al Mamun

Total Accepted Answers: 3

113

Templates

289766

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us