Feature Webservices PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
19 Oct 2025

Pull Request for Issue #46241 .

Summary of Changes

This change adds support for a tag_mode filter to the Articles list in com_content so callers can choose whether tag filtering should use OR (any) or AND (all) semantics. It also exposes the new filter via the API controller.

What this does

  1. Adds a new model state key filter.tag_mode (default: "any") to ArticlesModel.
  2. Implements "all" tag mode: when tag_mode=all and multiple tag IDs are provided, an article must have all of the specified tags to be included (AND semantics).
  3. Preserves the existing behavior as the default: tag_mode=any (OR semantics).
  4. Exposes the tag_mode parameter in the API controller (ArticlesController::displayList) and cleans input with the request filter.

Testing Instructions

GET api/index.php/v1/content/articles?filter[tag][]=2&filter[tag][]=3&filter[tag_mode]=all

Manual tests performed for:

  • Single tag with default behavior (any)
  • Multiple tags with tag_mode=any (OR)
  • Multiple tags with tag_mode=all (AND)
  • Missing/invalid tag_mode falling back to default

Actual result BEFORE applying this Pull Request

only logic OR

Expected result AFTER applying this Pull Request

Adds logic AND

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 19 Oct 2025
avatar alikon alikon - change - 19 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Oct 2025
Category Administration com_content
c17cac1 19 Oct 2025 avatar alikon cs
avatar alikon alikon - change - 19 Oct 2025
Labels Added: PR-6.1-dev
avatar alikon alikon - change - 19 Oct 2025
The description was changed
avatar alikon alikon - edited - 19 Oct 2025
avatar alikon alikon - change - 19 Oct 2025
The description was changed
avatar alikon alikon - edited - 19 Oct 2025
avatar alikon alikon - change - 19 Oct 2025
The description was changed
avatar alikon alikon - edited - 19 Oct 2025
avatar alikon alikon - change - 19 Oct 2025
Labels Added: Feature Webservices

Add a Comment

Login with GitHub to post a comment