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

The Very Best Question for Magento World
 
andreladocruz
Guru
 
Total Posts:  322
Joined:  2008-05-07
Brazil
 

Dear Friends,

I want to have two diferent root menus. One for the top (already working) and Other One just for the home page that should be placed on the left as the normal category navigation.

The both categories are createded.

How do I put the navigation on the home page?

I tried this:

<reference name="left">
<block type="catalog/navigation" category_id="4" name="catalog.leftnav" template="catalog/navigation/left.phtml"/>
</reference>

But it does not work.

As I saw this FAQ in others topics without a directly answer. I can garantee that it will be very helpfull for all members.

Regards,

André
http://novafarmadelivery.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
andreladocruz
Guru
 
Total Posts:  322
Joined:  2008-05-07
Brazil
 

Friends,

As I’m a very bad PHP programmer, I’m asking some one that can help me with a logical trick.

This trick maybe able to solve our problem.

What am I Thinking?

Well, the left category navigation is not shown in home page as your not visting a category.

On the left.phtml file ther is a logical test to see if there is subcategories to be shown.

<?php $_categories=$this->getCurrentChildCategories() ?>
<?php if($_categories->count()): ?>

What is the idea?

Do another logical test before the “<?php $_categories=$this->getCurrentChildCategories() ?>” line to see if is a category navigation. If not, set the category to other pre configured category.

With this, the left navigation menu sould appear easly.

That’s why I configured two diferent root menus (one for the top and one for de left).

Can any PHP programmer can help us on this little trick?

Let’s keep talking.

Andre
http://www.novafarmadelivery.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
andreladocruz
Guru
 
Total Posts:  322
Joined:  2008-05-07
Brazil
 

Where are the PHP programmers?

Help the community!

Regards,

Andre
http://www.novafarmadelivery.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
andreladocruz
Guru
 
Total Posts:  322
Joined:  2008-05-07
Brazil
 

Common guys!

Let´s help....

Everybody is wondering how to do this....

Andre
http://www.novafarmadelivery.com

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