Oct 4, 2012

Magento - How to access Toolbar property from your list template.

Here's the solution.
In you Catalog List Block add new method.
class Mage_Catalog_Block_Product_List extends ...{

    ....

    // I want to access the get pager in my list.phtml template.
    public function getPagerHtml(){
        return $page = $this->getToolbarBlock()->getPagerHtml();
    }
}

In you list.phtml template has now able to display the pager html.
<?php echo $this->getPagerHtml() ?>

If this help you, dont forget to comment. Enjoooy reading.

3 comments:

Winzter said...

My pleasure. Im glad you found this page.

Unknown said...

Actually i am looking for this kind of information.You made various nice point in your post. I am really thankful to you. Have a nice day..
toolbar maker


Anonymous said...

Wow great information about toolbar development. Hire toolbar developer exhaustive analysis is capable of reshaping toolbar solutions with accuracy and precision. Here, cutting-edge technology in collaboration with cost-efficient methods is the stand-out corner for toolbar developer.