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

Needed an expanded Toolbar
 
Ron Phillips
Member
 
Total Posts:  57
Joined:  2008-04-16
 

I want to expand the toolbar to 10 pages. Where do I do that? Right now it scrolls through a series of 5 pages.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

The toolbar is here: app/design/frontend/default/[YOURTEMPLATE]/template/catalog/product/list/toolbar.phtml

I don’t see anywhere where it’s limiting it to 5 there, but you may be able to modify it to display more.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ron Phillips
Member
 
Total Posts:  57
Joined:  2008-04-16
 

I couldn’t see where it was, so I assumed it was either a database option or an xml configuration.

This is my toolbar.phtml

<?php if($this->getCollection()->getSize()): ?>
    
<div class="pages-toolbar">
    
<?php if($this->getLastPageNum()>1): ?>

        
<ol>
               
<?php if (!$this->isFirstPage()): ?>
              
<li style="background:#FFFFFF;">
                <
a href="<?php echo $this->getPreviousPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" border="0"/></a>
            </
li>
            
<?php else: ?>
            
<li style="background:#FFFFFF;">
                <
img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" border="0"/>
            </
li>
            
<?php endif ?>
            <?php 
foreach ($this->getPages() as $_page): ?>
                <?php 
if ($this->isPageCurrent($_page)): ?>
                    
<li style="background:#990000; color:#FFFFFF;"><?php echo $_page ?></span></li>
                
<?php else: ?>
                    
<li style="background:#FFFFFF;"><a href="<?php echo $this->getPageUrl($_page) ?>" style="border:0; color:#990000; text-decoration:none;"><?php echo $_page ?></a></li>
                
<?php endif ?>
            <?php 
endforeach; ?>
            <?php 
if (!$this->isLastPage()): ?>
                
<li style="background:#FFFFFF;">
                <
a href="<?php echo $this->getNextPageUrl() ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next') ?>" border="0"/></a>
                 </
li>
            
<?php endif ?>
         
</ol>
    
<?php endif; ?>
    
</div>
<?php endif ?>
<div style="clear:both;"><!-- clear --></div>

Thanks.

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