User tests: Successful: Unsuccessful:
Pull Request for Issue # .
The PR add a new parameter in mod_articles to show also unpublished articles (only if you are logged in in the frontend and your user has the necessary rights).
Still draft, because there are maybe other options like start publishing date that are not taken in account. Adding a "unpublished" badge would be necessary. Badges already added.
Create articles, some published, some unpublished, some published in the future, some already expired.
Create an articles module, there is a new field "Show unpublished articles" you can set to yes (but only if no archived articles are selected).
Test different combinations of options (filtering, grouping, etc.). Use different users in different user groups to create articles. Check what you see in frontend logged in as different users.
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
Status | New | ⇒ | Pending |
Category | ⇒ | Language & Strings Modules Front End |
Labels |
Added:
Language Change
PR-5.4-dev
|
Title |
|
Labels |
Added:
Feature
|
Title |
|
Title |
|
As my code comments are not visible right now, here is it again:
I did some testing and for the usability it really seems not consistent to have the field only for "own articles". However, then you would have a module for specific user(s) to show also their unpublished/not yet published articles.
This could help for workflow features.
So, I would also make it possible for specific author(s).
But Viviana added that already.
I have tested this item ✅ successfully on 59922e3
Category | Language & Strings Modules Front End | ⇒ | Administration com_menus Front End com_contact com_content com_newsfeeds Installation Language & Strings Layout Libraries Modules NPM Change |
There seem to be a lot of unrelated changes here?
Still on draft, because there are unrelated changes in my branch ... I'm an upmerge ahead ...
Labels |
Added:
NPM Resource Changed
PR-6.0-dev
Removed: PR-5.4-dev |
Category | Language & Strings Modules Front End Administration com_menus com_contact com_content com_newsfeeds Installation Layout Libraries NPM Change | ⇒ | Language & Strings Modules Front End |
Title |
|
Just to be clear when testing. When you say "show unpublished" then this means it will include unpublished, expired and not yet published?
it will include unpublished, expired and not yet published
Exactly. I added some lines in the description above and a screenshot of my test module
@brianteeman thanks for checking. On my test yesterday I didn't see that, but on a new installation I can confirm your finding.
I'm afraid, I'm lost ... I thought the ArticlesModel delivers the articles depending on the access/edit rights ...
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-08-29 15:06:58 |
Closed_By | ⇒ | drmenzelit | |
Labels |
Removed:
NPM Resource Changed
|
Status | Closed | ⇒ | New |
Closed_Date | 2025-08-29 15:06:58 | ⇒ | |
Closed_By | drmenzelit | ⇒ |
Status | New | ⇒ | Pending |
This pull request has been automatically rebased to 6.1-dev.
@drmenzelit The module Articles bypasses populateState
of the ArticlesModel
because of ['ignore_request' => true]
, and so it does not do any extra filtering on its own
In the module you need to do something like done in there:
joomla-cms/components/com_content/src/Model/ArticlesModel.php
Lines 128 to 133 in 52cd3f4
Labels |
Added:
PR-6.1-dev
|
The issue I reported earlier is now resolved
As an author. Am I expected to be able to see my own articles in the module if they are unpublished/expired/notpublished yet
As an author. Am I expected to be able to see my own articles in the module if they are unpublished/expired/notpublished yet
You can, if you have edit rights
As a test I set the module option Author Filtering TypeI to Only from current user
I expected that as (in my test) the user is an author and they have edit own rights that I would be able to see articles I have created and are expired/notpublished yet - I can not
Maybe my expectation is incorrect
I expected that as (in my test) the user is an author and they have edit own rights that I would be able to see articles I have created and are expired/notpublished yet - I can not
From code view it is already should be like that.
When ContentComponent::CONDITION_UNPUBLISHED
is present then the date filter is ignored.
joomla-cms/components/com_content/src/Model/ArticlesModel.php
Lines 512 to 525 in 52cd3f4
Maybe something mixed up, but I do not see what.
edit own rights are not enough
Ok, I new try (after a talk with Sigrid): the option for unpublished articles is now available outside the author's filter