Hi,

The JA Megafilter module on our website is only displaying the SEARCH button, and no fields.

Any ideas on how to fix this?

I currently only have the module displaying on the page /mega-filter-test whilst it is not working correctly

In the component I have set it up to search K2, and a filter configuration called Speakers that contains 3 dropdown fields. I'm not sure why these 3 fields are not displaying on the front end.

The module:
/administrator/index.php?option=com_advancedmodules&view=module&layout=edit&id=643

The component:
/administrator/index.php?option=com_jamegafilter&view=default&layout=edit&id=1&catid=2

    Hi, shandb
    I understand. I am looking into it to figure out the reason and solution. I will get back to you shortly
    Regards,

      Hi shandb ,

      The main issue was caused by a JS error from the file override: root/templates/pressmag-v1-0-1/html/mod_finder/default.php, which prevented all the subsequent JS code from being executed. I have implemented a bug fix for this issue on your side.

      Here is the result:

      Please clear browser's cache and take a look.

      Regards,

      5 days later

      ok, great. That's a step in the right direction - but in my testing I've identified 2 new problems with the Mega Filter.

      1. It seems that I'm now unable to access the Mega Filter module in the module manager. Any attempt to edit the JA Megafilter Module displays an error in the backend, and I'm not able to access any of the module parameters:

      An error has occurred.
      0 Class 'Joomla\CMS\Form\Field\ListField' not found
      Return to Control Panel

      1. The search results are using incorrect k2 item links such as /component/k2/item/583-afterburner and not the more correct SEF URLs /speakers/afterburner that we use. We have a redirect set up on any URLs that include /component/k2/item because we don't want them appearing in the Google Search Index. Is there a way to fix this?

      Thanks for your help.

        shandb

        1/ The updated for this module has compatibility issue with the old Joomla 3 you're using, I just updated this file for you: /modules/mod_jamegafilter/fields/config.php

        2/ It depends on the menu item a K2 item belongs to, as I can see that K2 item: Afterburner is not assigned to any menu item so it keeps showing with URL of K2 component like that.

        I also check the menu items on your site but see no menu item like this: /speakers/afterburner . You can create your own menu item and assign this k2 item or its category to this menu so it can redirect to your desired page.

        Regards

        Hmmm, so close to getting this working.

        Mega Filter using the incorrect item URLs in the search results is a problem.

        as I can see that K2 item: Afterburner is not assigned to any menu item so it keeps showing with URL of K2 component like that.

        Yes. Our website is a directory website with over 1000 K2 items, so it doesn't make sense to have a menu item for each k2 item.

        You can create your own menu item and assign this k2 item or its category to this menu so it can redirect to your desired page.

        We actually do have a menu item for the k2 category SPEAKERS for all the k2 items that we want the megafilter to search through. https://www.ovations.com.au/speakers
        So I'm still confused as to why megafilter results continue to use /component/k2/item/583-afterburner and not the more correct SEF URLs /speakers/afterburner

        Perhaps there is a way to create automatically redirect from /component/k2/item/<item name> to /speakers/<item name> - Is that possible?

        I have been able to solve this issue.
        Chat GPT was hevry helpful in creating the rewrite rules to fix both problems. This is awesome, as MegaFilter is now working correctly as expected.

        Write a Reply...
        You need to Login to view replies.