Make filter not affect featured list
Hi,
On my website I have at the footer some randomly items from the catalog. These are displayed using the featured module and are shown on ALL pages.
The problem is, on some pages, I have a filter module. This filter module affects the featured module that I have in the footer.
Can I somehow make the featured module to ignore the filter module?
Re: Make filter not affect featured list
Re: Make filter not affect featured list
I can reproduce this is, unfortunately I don't see a work around. Looking at the php for the feature module, I can see it definitely uses the filter URL to generate it's list. My limited knowledge of PHP though prevents me from coming up with a modification that would override that filter.
Re: Make filter not affect featured list
Ok I solved it by editing the ModuleCatalogFeatured.php file. I commented out line 85:
Code:
//$filterurl = $this->parseFilterUrl(array());
Not update safe though....
Re: Make filter not affect featured list
This is not possible yet. I missed this feature while working with the catalog navigation too. A simple checkbox "exclude this module from being filtered" would do the job I guess.
Just add it to the tracker. Maybe I find some time to look at and implement it ;)
Re: Make filter not affect featured list
Depending on the situation, you can often use the plain old listing module that comes with the Contao core. Just use the catalog table as source, and set fields, conditions, sorting, etc. and give it a custom template.
I had a similar problem where I was building a drop-down navigation from items in a catalog -- an unrelated filter was interfering with it. Switching over to the listing module instead sorted it for me.
It's easy to overlook this module, but it can be REALLY handy.