Magento Forum

   
How do i put the catergories down the left cloum? 
 
craigboi87
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-07-18
 

i have scouted through the forum for an hour now and had no luck as to moving the catergories down the left instead of along the top??

i have seen it on some of the sites in magento for example

http://www.myriadfineart.com/

http://www.magazines-mags.com/

it cant be that hard… if this question has already been answered a million times i appoligise

anyway a point in the rite direction would be fantastic

craig

 
Magento Community Magento Community
Magento Community
Magento Community
 
craigboi87
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-07-18
 

*bump*

someone must know

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Hi

I know how to display only categories not subcategories, is it enough?

This part of code

<?php foreach ($this->getStoreCategories() as $_category): ?>
            
<dt>&nbsp; &nbsp
             <
a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="active"<?php endif ?>><?php echo $this->htmlEscape($_category->getName()) ?></a>
            </
dt>
        
<?php endforeach ?>

display the categories

if you create a new phtml file like

left_menu1.phtml

you can call this template from your page.xml in the left block reference

I use this solution ant it works

if for you is not enough this is the right page
http://www.magentocommerce.com/boards/viewthread/720/P30/

to look inside

good luke

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vofka
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-06-19
 

to craigboi87

Open your template (2 columns or 3 columns or what you need) and find something like that

<?php echo $this->getChildHtml('breadcrumbs') ?>

cut it and paste where you need to.

 
Magento Community Magento Community
Magento Community
Magento Community
 
craigboi87
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-07-18
 

hi guys and girls thanks for the response going to have a play now see what i can do (:

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

Where do I have to change to this code only function in the home page?

And how do I set the inicial category item?  The Idea is to have two differents menus. One for the top and one for the left.

 
Magento Community Magento Community
Magento Community
Magento Community
 
craigboi87
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-07-18
 

In the end i followed this

1. Create a file named “left_menu1.phtml” in “magento\app\design\frontend\default\default\template\catalog\navigation\”

left_menu1.phtml

<div class="box layered-nav">
    <
div class="head">
      <
h3><?php echo $this->__('Browse By'?></h3>
    </
div>
    <
div class="border-creator">
      <
div class="narrow-by">
           <
dl id="narrow-by-list">
           
         <
dd>
         <
ol>        
        
<?php foreach ($this->getStoreCategories() as $_category): ?>
            
<dt>
             <
a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="active"<?php endif ?>><?php echo $this->htmlEscape($_category->getName()) ?></a>
            </
dt>
        
<?php endforeach ?>
        
       
</ol>
      </
dd>
      </
dl><script type="text/javascript">decorateDataList('narrow-by-list')</script>
    
</div>
   </
div>
</
div>

2. Go to: CMS->Manage Pages, and click in Homepage, select in the left “Custom Design” and write this code in “Layout Update XML”:

<reference name="left">
    <
block type="catalog/navigation" name="catalog.leftnavig" before="-" template="catalog/navigation/left_menu1.phtml"/>
</
reference>

3. save it

to be honest i think this should be a sticky somewhere as its got to be a common ass question (:

 
Magento Community Magento Community
Magento Community
Magento Community
 
honeyharish
Member
 
Total Posts:  60
Joined:  2008-07-10
 

1st of all create a file left_cat_nav.phtml at “magento\app\design\frontend\default\default\template\catalog\navigation\””

(copy and paste this code)
<div class="box layered-nav">
<div class="border-creator">
<h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
<ul id="nav">
<table>
<?php foreach ($this->getStoreCategories() as $_category): ?>
<tr><td><?php echo $this->drawItem($_category) ?></tr></td>
<?php endforeach ?>
</table>
</ul>
</div>
</div>

and at layout/catalog.xml

after line 45 find that code

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

after that code put this code

<reference name="left">
<block type="catalog/navigation" name="catalog.vertnav" template="catalog/navigation/left_cat_nav.phtml" />
</reference>

save it .
it is working on my site

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

Thank you Folks!

I’ll try it latter today and feed back to you soon…

Just one question, How do I manually setup the category ID to list on the left?

Remember that I have two diferent root menus (one for the top and one for the left).

Keep Walking.

Regards,

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