Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1381

Joomla! 5.x Coding • Re: Filter by categories and category title in the list of items

$
0
0
Yes, right. But I have filters in this array. Do you meant this? Or something else?
I may have misunderstood you, but I thought you are saying the problem is that the filter bar disappears so you can't see what your list is filtered by. My solution is for that problem.

I had a quick look at your getListQuery (you don't need to write the getItems() if it's just calling the parent) and the first filter it shows is for "published". You don't have that in the config array. I'm guessing that you've got the ordering fields only. If you include all the filters as well, just the name of the filter not the field(s) it's working with, then the filter bar should remain visible after the filtered list is displayed.

I've also got code for this in my htmlview, putting the active filter fields in the title bar along with the number of rows displayed, but perhaps that's unnecessary when the filter bar remains visible.

Statistics: Posted by MarkRS — Tue Apr 30, 2024 8:19 pm



Viewing all articles
Browse latest Browse all 1381

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>