Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Home Button Not Shown In Menu Bar After Upgrade to 1.7.0
 
rizz
Jr. Member
 
Total Posts:  6
Joined:  2010-05-12
 

Hi
Upgraded successfully to 1.7.0.

However, noticed that my home button is now gone (it was working in 1.6.2 before I upgraded to 1.7.0)

In my template that I used, there is already this code in top.phtml in app/design/frontend/default/yourtheme/template/catalog/navigation/top.phtml

<?php
/**
* Top menu for store
*
* @see Mage_Catalog_Block_Navigation
*/
?>
<?php $_menu = ''?>
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php $_menu .= $this->drawItem($_category) ?>
<?php endforeach ?>
<?php if ($_menu): ?>
<div class="nav-container">
<ul id="nav">
<li><a href="<?php echo $this->getUrl('') ?>"><?php echo $this->__('Home'); ?></a></li>
<?php echo $_menu; ?>
</ul>
</div>
<?php endif; ?>

Is this a bug in 1.7.0?

 
Magento Community Magento Community
Magento Community
Magento Community
 
trydot
Jr. Member
 
Total Posts:  1
Joined:  2010-11-27
 

Hey, I just found the new location, magento now uses the page/html/topmenu.phtml template

 
Magento Community Magento Community
Magento Community
Magento Community
 
critt
Jr. Member
 
Total Posts:  1
Joined:  2010-10-26
 

I have the same problem - i dont have categories in navigation - how to fix it ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rombertus
Jr. Member
 
Total Posts:  12
Joined:  2010-08-26
 

My topmenu.phtml is like this. Home button working with active state.

<?php $_menu $this->getHtml(\'level-top\'?>
<?php 
if($_menu): ?>
<div class=\"nav-container\">
    <
ul id=\"nav\">
        <
li class=\"<?php if ($this->getRequest()->getAlias(Mage_Core_Model_Url_Rewrite::REWRITE_REQUEST_PATH_ALIAS) == \'home\') { echo \'active\'; } else { echo \'home\'; } if($first==0): echo \' first\'; endif;?>\" onmouseover=\"toggleMenu(this,1)\" onmouseout=\"toggleMenu(this,0)\"> <class=\"<?php if($first==0): echo \' first\'; endif;?>\" href=\"<?php echo $this->getUrl(\'home\')?>\"><span><?php echo $this->__(\'Home\'?></span></a>
        </
li>
        
<?php echo $_menu ?>
    
</ul>
</
div>
<?php endif ?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top