Skip to content

Conversation

@coolcat-creations
Copy link
Contributor

@coolcat-creations coolcat-creations commented Dec 5, 2025

For many frontend editors, the Category List view is the central place to browse, edit, and create articles. In busy categories (or on sites with many authors), that list can become overwhelming because it shows all articles.

This PR introduces an optional author filter for Category List and Category Blog menu items—aligned with the author filtering options already available in mod_articles for consistency. The result is a cleaner frontend management experience: less noise, faster scrolling/searching, and a lower risk of accidentally editing the wrong item—especially on multi-author sites. It also enables “special” views such as Articles by a specific user or Your personal news.


Summary of Changes

  • Add mod_articles-style author filtering options (Include / Exclude / Current User) to Category List and Category Blog menu item parameters.
  • When Current User is selected, hide the author selector and limit the output to the logged-in user’s articles.
  • Pass the author filter state through CategoryModel to the Articles model, and remove unintended alias filtering / unrelated version-bump changes.

Testing Instructions

  1. Edit a Category List menu item:
    • Set Author Filtering Type to Include or Exclude and select one or more authors.
    • Switch to Current User and confirm the author selector is hidden.
  2. View the menu item in the frontend while logged in:
    • With Current User, verify only the logged-in user’s articles are shown.
    • With Include/Exclude, verify the selected authors are respected.
  3. Repeat the same checks for a Category Blog menu item.

Actual Result (Before This PR)

  • The Category List displays all articles in the selected category.
  • There is no option to filter the list to the currently logged-in user’s own articles.

Expected Result (After This PR)

  • Author filtering matches mod_articles: Include / Exclude / Current User.
  • Current User hides the selector and limits results to the logged-in author.
  • No unintended alias filtering and no unrelated version edits.

Documentation

I’m happy to provide documentation and screenshots once the feature is approved/accepted.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.4-dev labels Dec 5, 2025
@brianteeman
Copy link
Contributor

As we have this functionality in the articles module I would look at the ui and language strings in that module instead of creating different strings. Consistency is key

@joomla-cms-bot joomla-cms-bot removed the NPM Resource Changed This Pull Request can't be tested by Patchtester label Dec 5, 2025
LadySolveig
LadySolveig previously approved these changes Dec 5, 2025
Copy link
Contributor

@LadySolveig LadySolveig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can check what Brian mentioned regarding the consistency of the language strings, the rest LGTM :)

@coolcat-creations coolcat-creations changed the title UX feature: “Show Own Articles Only” option for Category List UX feature: Filter by Author (Include/Exclude/Current User) option for Category List Dec 5, 2025
@coolcat-creations
Copy link
Contributor Author

@brianteeman @LadySolveig
Changed the PR completely to reflect the options in mod_articles regarding Author filtering. For consistency I also added it into the blog view. Updated Headline and description. Tested successfully myself.

@LadySolveig LadySolveig dismissed their stale review December 5, 2025 15:22

Code changes

@richard67
Copy link
Member

richard67 commented Dec 5, 2025

@coolcat-creations New features have to be made for the 6.1-dev branch. See https://github.com/joomla/joomla-cms?tab=readme-ov-file#which-branch-should-my-pull-request-target .

P.S.: I have allowed myself to rebase this PR to 6.1-dev.

@richard67 richard67 changed the base branch from 5.4-dev to 6.1-dev December 5, 2025 15:40
@richard67 richard67 changed the title UX feature: Filter by Author (Include/Exclude/Current User) option for Category List [6.1] UX feature: Filter by Author (Include/Exclude/Current User) option for Category List Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants