2 horizontal menus - HELP!


First Prev Page 2 of 2   
Author Message
Helpme

Posted: 3/6/2011
Quote message 

wow thank you guys for trying. who would have thought it was THAT complicated :(
 
Victor Eklund

Posted: 4/6/2011
Quote message 

I have tried this fix but without any good results. I can't get the two menus to have the same style. When I created the second horizontal menu it looks like a list instead of a horizontal menu.

Like this:
*submenu item
*submenu item
*submenu item

Instead of
submenuitem I submenu Item I submenu Item
 
DAVID

Posted: 8/14/2012
Quote message 

Quote Helpme:

IT WORKS! :-D :-D :-D :-D :-D :-D

1. I had to add some <br> right after the new module position in index.php to move the other modules down.

2. I had to add a "}" without quote, right before the "else"

The only last thing I need to do is to center the menu. I can't figure out how to do that...
[/quote
TENGO EL MISMO PROBLEMA Y NO HE PODIDO HACER ESTO ME PODRIAN AYUDAR????? PORFA
 
Gaurav Kakade

Posted: 5/18/2013
Quote message 

:-)

Simple go to module manager and duplicate the content/horizontal menu. That would help. Thanks.
 
Niall

Posted: 5/23/2013
Quote message 

:-(
Going through this now and it is a pain in the butt. The art-hmenu class should be all that is required however we still endup with a vertical list as the class gets changed to <ul class"menuart-hmenu"> according to firebug where the standard "Main Menu" is <ul class "art-hmenu">. Why can't Artisteer simply fix the editor to allow creating Class styles for blocks within the app. Save the class as part of the template, seems easy enough to me compared to the multi part hand coded changes to multipal files and cryptic support suggestions such as "of course the js will need to be modified as well." Of Course? Artisteer is used by people like me that wish to build a site quickly without spending time learning how to write PHP, JS and CSS when it shouldn't be required.

 
Antje Stulz

Posted: 8/30/2013
Quote message 

hello,

I'm trying to create a 2nd horizontal menu in a template made with Artisteer 4.1.

I didn't find a "mod_mainmenu" but a "mod_menu".

It looks like this:

<?php
defined('_JEXEC') or die;

require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'functions.php';

// Note: it is important to remove spaces between elements.

$tag = ($params->get('tag_id') != NULL) ? ' id="' . $params->get('tag_id') . '"' : '';
if (isset($attribs['name']) && $attribs['name'] == 'user3') {
$menutype = 'horizontal';

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

// check if it is necessary to render subitems:
$subitems = $GLOBALS['artx_settings']['menu']['show_submenus'] && 1 == $params->get('showAllChildren');
// true - skip the current node, false - render the current node.
$skip = false;

echo '<ul class="art-hmenu"' . $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>';
}
elseif ($item->shallower)
echo '</li>' . str_repeat('</ul></li>', $item->level_diff);
else
echo '</li>';
}
echo '</ul>';
} 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>';
} else {
$menutype = 'default';
echo '<ul class="menu' . $params->get('class_sfx') . '"' . $tag . '>';
foreach ($list as $i => &$item) {

$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)
echo '<ul>';
elseif ($item->shallower)
echo '</li>' . str_repeat('</ul></li>', $item->level_diff);
else
echo '</li>';
}
echo '</ul>';
}

I'd like to have this menu additional in position banner1. How can I manage this?

 
sixtus

Posted: 11/24/2017
Quote message 

good day everyone i am having troubles getting another horizontal menu on my artisteer (you can visit HSBC malaysia to see what am talking about i think if artisterr can design such website it will be the highest template designer in the world i will love to get an answer on these please
 
First Prev Page 2 of 2