how to add extra menu options on navigation menu

Hello guys!

I will like to add extra options on main menu, but also keep current "category menu" items,
I need to add two extra options. like "Contact us" , "About us"

I already have the pages with their URL key. but Im wondering how and where should I add these new options.

best regards to all!

this post is very similar, but does not address this challenge…

http://www.joomlart.com/forums/showt…756#post323756

8 answers

Profile photo of chavan 100.00 $tone June 6, 2012
Public

you need to add here in this folder app\design\frontend\default\jm_mozanistemplate\ca talognavigationtop.phtml

before this code

Code:

</ul>

there will be 2 instance of the code where you have to add the New link twice both in IF and ELSE

Code:

<li >
            <a < href="<?php echo $this->getUrl('') ?>" title="contactus"><span>Contact Us</span></a>
        </li>

Note: If you Find my Post useful please click on the Thanks Icon

#1
Profile photo of Rusell Cerrato 0.00 $tone June 6, 2012
Public

It did works!

Now I just need to move it rigth next the last option on the menu, or at least near to make it look like its part of the normal menu..

here is the code I have, and a pic of the last thing I need.

thank you.

<?php if ( $tmpTools->getParam("ja_menu", ‘css’) == "css" ) { ?>

<div class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
<div class="header-nav">
<h4 class="no-display"><?php echo $this->__(‘Category Navigation:’) ?></h4>
<ul id="nav" class="clearfix">
<li <?php echo $homecls;?>>
<a <?php echo $homecls;?> href="<?php echo $this->getUrl(”) ?>" title="Home"><span>Home</span></a>
</li>
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $this->drawItem($_category) ?>
<?php endforeach ?>
<?php if ( $tmpTools->getParam("usertool_color", ‘4’) == "4" ) : ?>
<li class="level0 parent" onmouseout="toggleMenu(this,0)" onmouseover="toggleMenu(this,1)" >
<a href="#"><span>Mozanis’s Color</span></a>
<?php echo $tmpTools->genToolMenu ($tmpTools->getParam(‘usertool_color’),’txt’); ?>
</li>
<?php endif; ?>
<li >
<a < href="<?php echo $this->getUrl(‘contacto’) ?>" title="contacto"><span>Contactenos</span></a>
</li>
</ul>
</div>
<?php echo $this->getChildHtml(‘topLeftLinks’) ?>
</div>

<?php }else { ?>

<div onmouseout="rollbackCurrentMenu()" class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
<div class="header-nav">
<h4 class="no-display"><?php echo $this->__(‘Category Navigation:’) ?></h4>
<ul id="nav" class="clearfix">
<li <?php echo $homecls;?>>
<a <?php echo $homecls;?> href="<?php echo $this->getUrl(”) ?>" title="Home" onmouseover="hideAllMenu();"><span>Home</span></a>
</li>
<?php $i=0; foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $jaMenuObj->extendDrawParentItem($_category, 0, false, $i); $i++; ?>
<?php endforeach ?>
<?php if ( $tmpTools->getParam("usertool_color", ‘4’) == "4" ) : ?>
<li id="parent_menu9999" class="level0 parent" onmouseout="toggleMenu(this,0);" onmouseover="toggleMenu(this,1); hideAllMenu(); displayChildMenu(‘9999’); " >
<a href="#"><span>Mozanis’s Color</span></a>
</li>
<?php endif; ?>
<li >
<a < href="<?php echo $this->getUrl(‘contacto’) ?>" title="contacto"><span>Contactenos</span></a>
</li>
</ul>
</div>
<?php echo $this->getChildHtml(‘topLeftLinks’) ?>
</div>
Attachment 21674

#2
Profile photo of chavan 100.00 $tone June 6, 2012
Public

Replace with this code

Code:

 <?php if ( $tmpTools->getParam("ja_menu", 'css') == "css" ) { ?>

<div class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
<div class="header-nav">
<h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
<ul id="nav" class="clearfix">
<li <?php echo $homecls;?>>
<a <?php echo $homecls;?> href="<?php echo $this->getUrl('') ?>" title="Home"><span>Home</span></a>
</li>
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $this->drawItem($_category) ?>
<?php endforeach ?>
<?php if ( $tmpTools->getParam("usertool_color", '4') == "4" ) : ?>
<li class="level0 parent" onmouseout="toggleMenu(this,0)" onmouseover="toggleMenu(this,1)" >
<a href="#"><span>Mozanis's Color</span></a>
<?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_color'),'txt'); ?>
</li>
<?php endif; ?>
<li>
<a href="<?php echo $this->getUrl('contacto') ?>" title="contacto"><span>Contactenos</span></a>
</li>
</ul>
</div>
<?php echo $this->getChildHtml('topLeftLinks') ?>
</div>

<?php }else { ?>

<div onmouseout="rollbackCurrentMenu()" class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
<div class="header-nav">
<h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
<ul id="nav" class="clearfix">
<li <?php echo $homecls;?>>
<a <?php echo $homecls;?> href="<?php echo $this->getUrl('') ?>" title="Home" onmouseover="hideAllMenu();"><span>Home</span></a>
</li>
<?php $i=0; foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $jaMenuObj->extendDrawParentItem($_category, 0, false, $i); $i++; ?>
<?php endforeach ?>
<?php if ( $tmpTools->getParam("usertool_color", '4') == "4" ) : ?>
<li id="parent_menu9999" class="level0 parent" onmouseout="toggleMenu(this,0);" onmouseover="toggleMenu(this,1); hideAllMenu(); displayChildMenu('9999'); " >
<a href="#"><span>Mozanis's Color</span></a>
</li>
<?php endif; ?>
<li>
<a href="<?php echo $this->getUrl('contacto') ?>" title="contacto"><span>Contactenos</span></a>
</li>
</ul>
</div>
<?php echo $this->getChildHtml('topLeftLinks') ?>
</div>

if this did not work post your site url

Note: If you Find my Post useful please click on the Thanks Icon

#3
Wall Crasher 0.00 $tone July 19, 2012
Public

Hi mneese_mag,

This is the way Magento says to add menu items…this way it doesn’t disappear with template updates, re-indexing, caching flushes etc etc…

http://www.magentocommerce.com/knowl…avigation-bar/

This work for me. I can add sub category and it does show on menu. I ever drag the sub category to re-index the menu item order.
Please check my screenshot.
Attachment 22461
Attachment 22462

Please check again if you are configuration correctly.

Regards

#8

This question is now closed

Written By

Comments