Joomlatools Pages also allows to filter

Preliminary note: difference between Searching and Filtering:

  • when you search you start with nothing and you go find something
  • when you filter you start with everything and you remove items that don't follow the constraints you provide

Filtering via url

Click on the following links and see the list of articles changing in function of the filter criteria.


List of (filtered) articles:


Filtering can be done via the Frontmatter, the url or the code

Note: it works great for data coming from webservices, or from arrays, for database this is a tad harder to implement, it works for data from the same table, for related data it's harder. Still working on making it so that you don't need special states for filtering on db.

Filters work on

  • ID
  • category
  • access (=> use userid)
  • editor (=> use userid)
  • author (=> user userid)

For more information, see https://github.com/joomlatools/joomlatools-pages/pull/363

Filters also work with States: you can use the collection stats both in your frontmatter and in your url too.
States are easy to find: https://github.com/joomlatools/joomlatools-pages/blob/master/contrib/extensions/joomla/model/articles.php#L16

Note: 'filter' is an approach to try and make this just work, without needing much custom code. This works great for example for a database table if you use the base database collection or for a webservice, but in case of the joomla extension we are not talking one to one to the daabase table, so filter doesn'y work there that easily.


For more information about Filtering see also


And here is a little var_dump(collection()) so that you can see all what is immediately available in the array itself:

object(ComPagesModelEntityItems)#1872 (0) {
}