Joomlatools Pages also allows to filter directly on Tags!
This is not possible in Joomla without an extension and can be done directly via the Frontmatter or via the url
Filtering on Tags via url
Click on the following links and see the list of articles changing in function of the filter criteria.
- /filter-tags
- /filter-tags?tags=tag1
- /filter-tags?tags=tag2
- /filter-tags?tags=tag1,tag2 which means tag1 OR tag2
- /filter-tags?tags[]=tag1&tags[]=tag2 which means tag1 AND tag2
- /filter-tags?tags[]=tag1&tags[]=tag2,tag3 which means tag1 AND (tag2 OR tag3)
List of articles (filtered on Tags):
- Organization 1 (tags: [ "tag1", "tag3" ])
- Organization 2 (tags: [ "tag1", "tag2" ])
- Organization 3 (tags: [ "tag2" ])
Filtering on Tags via Frontmatter
---
@collection:
model: ext:joomla.model.articles
state:
sort: title
category: [organizations]
tags: [tag1]
---
You can filter on much more than "just" Custom Fields or Tags:
- See the PR about Joomla Extensions Filtering to know more: https://github.com/joomlatools/joomlatools-pages/pull/363