Page 1 of 1

CTLModuleMaker search results to replace item list

Posted: Sun Aug 26, 2012 4:14 pm
by jbx1
Hi,

I am trying to get CTLModuleMaker to work for my catalogue and after various minor fixes and tweaks here and there I got it to work apart from 1 final hurdle which I can't figure out.

On the main page I have a list of items paginated with up to 6 items per page and on the side I have a sidepanel widget which lists some search fields which the user can use to filter out the items.

However, instead of replacing the main view with the list of filtered items it is still displaying the previous list of items, and another list of items underneath.

I figured out that most probably this is because I have two tags on the same CMS template:

Code: Select all

  {cms_module module="MyCatalogue" what="products"  nbperpage="6" }

Code: Select all

{cms_module module="MyCatalogue" action="search" what="products" }
So I suppose that what is happening is that the search results are replacing the second tag, while the first tag is still being rendered normally.

How can I replace the original list with the search results, without removing the search panel from the main screen? I don't want the search to be on a separate page.

thanks.