2010-09-21

i don't know if my title is ok, but what i'm trying to do is something like a gallery or at least my client call it this way...lol..... i'm trying to do something like the seach result page but without a search criteria, without a filter, just click in a link and see a list of products, with the same funcionality, change the view mode(Grid, List), select the amount of products to show and a pager, i need some help here, what I've done so far is, i create a new controller with just one action as simple as

in my xml layout

it is almost identical to catalogsearch_result_index block in catalogsearch.xml, when i tried to go to my new page it show me no products, the collection was empty, so, i change the content of funcion _getProductCollection() in app\code\core\Mage\Catalog\Block\Product\List.php for this

i don't like to change the core code, but now i'm trying to make it work, so, when i refresh the page it show me the products, i can change the view mode, i can see the amount of products, but, the pager don't work, when i change the amount of product i whanna show, it do nothing, just change the label 8 Item(s) for Item 1-8 of 8, and doesn't group it, if i pick 5, it should show just 5 items, but i can see the 8 i have in my db, so,

what is wrong with my code?, how can i make the pager work??

thanks

Show more