1

I am trying to filter the article manager in the backend via the url like:

index.php?option=com_content&filter_category_id=18

but it doesn't seem to work. Instead it gives me a warning:

Warning: Attempt to assign property of non-object in /libraries/framework/Joomla/Registry/Registry.php on line 428

Are there any changes on how we could filter the component, or there is a bug?

1

Looks like the method of doing this has now changed. I have checked this method and it works perfectly. I cant break it at all

Here is an example using published

index.php?option=com_content&view=articles&filter[published]=1

You can also use

  • [filter]level
  • [filter]author_id

etc

in fact everything that is in the search tools on the article view can be preset using the URL, just get its ID using Google dev tools!

This may be obvious, but just feel like I need to complete the answer in case anyone else looks, but you You can also stack the filters, i.e

index.php?option=com_content&view=articles&filter[category_id]=2&filter[level]=1
  • Does this work for you in Joomla 3.3.1? I forgot the view on my question, but I have tried with the view on the real scenario. It still doesn't work on this install and it is almost a fresh one. I will try it on another one as well... – FFrewin Jul 17 '14 at 23:59
  • Yup just tried on a brand new 3.1.1 install, works fine – MOLEDesign Jul 18 '14 at 0:42
  • I was also able to replicate your exact error message by leaving out the view – MOLEDesign Jul 18 '14 at 0:44
  • OK, created a new category. Was given the ID of 8, created a new article with that category and then went to {website}/administrator/index.php?option=com_content&view=articles&filter_category_id=8 and voila the search filter changed to the new category, and just the one article was listed – MOLEDesign Jul 18 '14 at 0:51
  • this is a 3.1.1 install I did yesterday downloaded fresh from the Joomla website – MOLEDesign Jul 18 '14 at 0:52
0

Now that the Joomla filters are allowing multiple selections, e.g. in com_content articles list we can filter using multiple categories, the way to achieve the filtering with a _GET query string is like below:

index.php?option=com_content&view=articles&filter[category_id][]=105&filter[category_id][]=146

Essentially, we need to convert the desired filter to an array (when it applies) and then assign multiple.

&filter[category_id][]=105&filter[category_id][]=146

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.