Results 1 to 6 of 6

Thread: Make filter not affect featured list

  1. #1
    User
    Join Date
    08-15-09.
    Location
    Sweden
    Posts
    82

    Default 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?

  2. #2
    User
    Join Date
    08-15-09.
    Location
    Sweden
    Posts
    82

    Default Re: Make filter not affect featured list

    *bump*

    Anyone?

  3. #3
    User
    Join Date
    07-01-09.
    Posts
    91

    Default 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.

  4. #4
    User
    Join Date
    08-15-09.
    Location
    Sweden
    Posts
    82

    Default 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....

  5. #5
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170

    Default 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
    Regards

    Yanick - Contao core developer @terminal42 gmbh

  6. #6
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •