Magento Forum

   
Want to move Footer Links to the Nav Bar under the header
 
Bill007
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2008-01-15
New Zealand
 

Ok so I want The Footer Links or Page links to be in the top nav menu

Am I on the right Track

I have added the following to catalog.xml

<block type="catalog/navigation" name="pagelinks.topnav" template="catalog/navigation/pagelinks_top.phtml"/>

<reference name="top.menu">
            <
block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/>

            <
block type="catalog/navigation" name="pagelinks.topnav" template="catalog/navigation/pagelinks_top.phtml"/>
        </
reference>

I then created a phtml file called pagelinks_top.phtml

It resides in >>>> layout / template/catalog/navigation/pagelinks_top.phtml

I assume the the same code that forms top.phtml is a good place to start for my base code
I then take code from footer.phtml or part of it

so this is my effort Dont Laugh and Help please but it does not work

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
?>
<?
/**
 * Top menu for store
 *
 * @see Mage_Catalog_Block_Navigation
 */
?>
<div class="header-nav-container">
    <
div class="header-nav">
 <!--<
h4 class="no-show"><?=$this->__('Category Navigation:')?></h4>
-->
        <
ul id="nav">
                 
<?=$this->getChildHtml()?>  
    <?if
($this->hasSeoLinks()>0):?>
       
<div>
        <
ul id="footer:seo-links">
        
<?foreach($this->getSeoLink() as $item):?>                                      
            
<li><a href="<?=$item['url'];?>"><?=$item['title'];?></a></li>
        
<?endforeach;?>
        
</ul>
        <
script type="text/javascript">decorateList('footer:seo-links')</script>
       
</div>
    
<?endif;?>           </div>
    
<?=$this->getChildHtml('topLeftLinks')?>
</div>

Thanks in advance

Bill Bailey http://www.euphorish.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bill007
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2008-01-15
New Zealand
 

bUMP…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top