JM Category List: How to get working on category pages

how do you properly add this module to category pages?

i’ve tried entering the following in the custom layout section but am having no luck. at first it appeared but mode was ignored. now i cant get the module to appear at all on a category page.

<reference name="content">
<block type="joomlart_jmcategorylist/list" name="jmcategorylist" >
<action method="set">
<title>You May Also Like:</title>

3 answers

Profile photo of Saguaros 0.00 $tone August 2, 2012

Hi jcaroll,

You could try to create a new static block with content of this JM Category List module something like:

PHP Code:

block type="joomlart_jmcategorylist/list" name="jmcategorylist" template="joomlart/jmcategorylist/list.phtml" 
mode="best_buy" catsid="16,17" max="0" height="200" width="200" quanlity="3" perrow="3" 
blad blad...}}

and call this cms block inside above content reference like:

PHP Code:

<block type="cms/block" name="your_name_block">
action method="setBlockId"><block_id>YOur_block_id</block_id></action>

Profile photo of Jamie Carroll 0.00 $tone August 16, 2012

i had thought of the method you suggested, but we have 960+ categories so for maintainence purposes, i was hoping to keep all the block settings directly in each category’s custom layout section. but your method does indeed work, so i think we’ll have to go that route. thanks for the assistance.


Please login or Register to Submit Answer

Written By