Limit NAVIGATE menu to just 4 items

The ‘NAVIGATE’ menu in the bottom left is controlled by the file app/design/frontend/…html/botslmenu.phtml

At the moment all the menu items sshown in the top menu are also listed here -- but for me this list is too long. How can I LIMIT the number of menu items shown in the bottom NAVIGATE to just the first 4?

Code:

<?php $_menu = $this->getHtml('level-top') ?>
<?php 
global $tmpTools; 
if ($tmpTools->isHomepage()===FALSE) 
{
	$homecls='class="nav-home"';
} else {
	$homecls='class="nav-home active"';
}
?>
<div class=" col-1 col-narrow">
<?php if($_menu): ?>
<div class="block block-list navitage">
		<div class="block-title">
			<strong>Navigate</strong>
		</div>
		<div class="block-content">
	    <ul>
	    		<?php $first=0;?>
	    		<li <?php echo $homecls;?>>
						<a  href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->__('Home') ?>" class="<?php if($first==0): echo ' first'; endif;?>" ><span><?php echo $this->__('Home') ?></span></a>
	        </li>
	        <?php echo $_menu ?>
	    </ul>
    </div>
</div>
<?php endif ?>
</div>

Or another option is to remove the hard coded botslmenu.phtml file altogether…. How can I show a block in this position. I think it is position-9, but it doesnt work (when I delete the botslmenu.phtml file and activate a block in position 9)

3 answers

Profile photo of tomc 0.00 $tone February 12, 2013
Public

What about deactivating/eliminating that particular menu altogether and simply utilizing one of the ancillary menu navigation lists with however many items you want?

#1
Profile photo of mazhar shah 100.00 $tone February 12, 2013
Public

That menu at the bottom will not deactivate. The only way to do it is to delete from the file I mentioned above. That menu seems to be hard coded into the template. Using the magento admin i could not see anywhere how to deactivate that foot menu. It seems to be in position-9. There is a block at position-9 with the same name (NAVIGATE) but it does not work at all. Turning off or deactivating that does nothing. The only way I could remove the menu is by deleting the hard coded menu from the above file.

I have added an image of the problem. You can see the list is much too long at the bottom of the page. Worst scenario is to delete the menu altogether.Attachment 25888

#2
Profile photo of Sherlock 0.00 $tone February 13, 2013
Public

Hi maz001,

DId you want to remove that block ? if that you can open the layout file of app\design\frontend\default\jm_trex\layout\page.xm l look for this block tag and remove it

HTML Code:

 <block type="core/text_list" name="botsl.menu" as="botslMenu" translate="label">
		                <label>Navigation Bar</label>
		                <block type="page/html_topmenu" name="catalog.botslnav" template="page/html/botslmenu.phtml"/>
          </block>

I hope that helps !

#3

Please login or Register to Submit Answer

Written By

Comments