Is article created with pre-selected category published immediately by design?

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
anthonyrsc
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Fri May 23, 2008 11:13 am
Location: Stockport, England
Contact:

Is article created with pre-selected category published immediately by design?

Post by anthonyrsc » Sat Sep 30, 2023 9:01 pm

Hi,
Can I check if this is by design?

(The user has permissions on their article category to Create, Delete, Edit, Edite State, Edit Own.)

From a front-end perspective, If a menu item is made that creates an article in their category with their category preselected, the article is immediately published.
If the menu item is set to create an article without any category selected, and they are left to select their own category manually, the article is left for moderation (not published).

It seems the publishing state of the article is treated differently depending on whether the category was pre-selected or not?

Cheers,
Anthony
Last edited by toivo on Sat Sep 30, 2023 9:41 pm, edited 1 time in total.
Reason: mod note: retitled
:pop

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30461
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Is article created with pre-selected category published immediately by design?

Post by Per Yngve Berg » Sat Sep 30, 2023 10:06 pm

With the Edite State Permission, the Article will be published by default.

anthonyrsc
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Fri May 23, 2008 11:13 am
Location: Stockport, England
Contact:

Re: Is article created with pre-selected category published immediately by design?

Post by anthonyrsc » Sat Sep 30, 2023 10:37 pm

Thanks. How come if they have edit state and select the same category it doesn't auto-publish when the only difference is they have selected the category themselves? Is it for a failsafe?
If they tried to publish an article to another category they do not have create permissions to, I'd expect that to be moderated / saved unpublished.

I want to offer menu items that allow a front-end user to create articles under a certain category. The category they use contains subcategories. Because of that, I can't use the create article menu item with a category preselected, as it only allows one category.so I wanted to leave the 'create article' menu item category blank allowing the user to select the category themselves, and have their article automatically published.

Cheers,
:pop

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30461
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Is article created with pre-selected category published immediately by design?

Post by Per Yngve Berg » Sat Sep 30, 2023 10:54 pm

They should be able to select Published before saving.

anthonyrsc
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Fri May 23, 2008 11:13 am
Location: Stockport, England
Contact:

Re: Is article created with pre-selected category published immediately by design?

Post by anthonyrsc » Sat Sep 30, 2023 10:59 pm

It seems only on a menu item, where the category is pre-selected.
Cheers
:pop

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30461
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Is article created with pre-selected category published immediately by design?

Post by Per Yngve Berg » Sat Sep 30, 2023 11:16 pm

Report it as a bug in the Issue Tracker.

anthonyrsc
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Fri May 23, 2008 11:13 am
Location: Stockport, England
Contact:

Re: Is article created with pre-selected category published immediately by design?

Post by anthonyrsc » Sun Oct 01, 2023 12:29 am

Thanks. Done. Hopefully, I've worded it better this time around: https://issues.joomla.org/tracker/joomla-cms/42002
:pop


Post Reply

Return to “General Questions/New to Joomla! 4.x”