[6.2] Add dynamic "Active User Only" author filtering#48086
[6.2] Add dynamic "Active User Only" author filtering#48086Reda-Muhamed wants to merge 2 commits into
Conversation
|
I have tested this item 🔴 unsuccessfully on 6509a9f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48086. |
|
If you swich Active user only to "no" you can select the users? |
Thanks Brian, the intention is to add dynamic author filtering, not replace the existing static author filtering. (I forgot and use the old PR description, but I updated it) |
|
Then theactive user only must default to disabled |
the default option is "no" |
|
weird - just rechecked and it is disabled - no idea why i thought it was not |
|
I have tested this item ✅ successfully on 6509a9f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48086. |
1 similar comment
|
I have tested this item ✅ successfully on 6509a9f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48086. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48086. |



Pull Request resolves # .
Summary of Changes
This PR adds an optional Active User Only mode to the Smart Search (
com_finder) filter author section.Existing static author filtering remains available and unchanged. Administrators can still select one or more specific authors as before. When the new option is disabled, the filter behaves exactly as it did before this PR.
When Active User Only is enabled, the filter becomes dynamic for the Author branch. Instead of storing a fixed author selection, Smart Search resolves the currently logged-in user’s Author taxonomy node when the search query is processed.
This allows a single Smart Search filter, for example “My Articles”, to show content authored by the current user.
How it works
The filter stores an
active_user_onlyflag in the filter params.When the flag is disabled:
When the flag is enabled:
Testing Instructions
Static author filtering
Dynamic active-user filtering
User with no authored content
Actual result BEFORE applying this Pull Request
Smart Search author filtering was static only. Administrators could select fixed author taxonomy nodes, but could not create one reusable filter that automatically matched the currently logged-in user.
Expected result AFTER applying this Pull Request
Static author filtering continues to work as before.
Administrators can optionally enable Active User Only to make the Author branch dynamic. In that mode, Smart Search resolves the current user’s Author taxonomy node during query processing. If the current user has no indexed authored content, the filter returns no results.
Link to documentations
Please select: