User tests: Successful: Unsuccessful:
This PR introduces a workflow plugin that allows setting a category change when a transition is executed for articles.
In Extensions when searching for "workflow":

In the Transition Actions section:

In Extensions when searching for "workflow":

In the Transition Actions section:

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 | ⇒ | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins JavaScript |
| Title |
|
||||||
Thank you @brianteeman for review, will update the pr soon with the changes.
It might be that we have to move this to 6.1 as soon as we have created a 6.1-dev branch necause 6.0 has already had feature freeze with 6.0.0-beta1.
| Labels |
Added:
Feature
Language Change
PR-6.0-dev
|
||
| Category | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins JavaScript | ⇒ | SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Libraries Front End Plugins |
| Labels |
Added:
NPM Resource Changed
|
||
Thanks @brianteeman and @richard67 for the review. I’ve made all the suggested changes. I really appreciate your time and feedback.
@Dileepadari Now you have produced invalid SQL syntax in the update SQL scripts by using only a part of administrator/components/com_admin/sql/updates/mysql/6.0.0-2025-08-02.sql.
The correct syntax is (exmaple from the mentioned other SQL):
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`)
SELECT 0, 'plg_schemaorg_article', 'plugin', 'article', 'schemaorg', 0, 0, 1, 0, 1, '', '{}', '', -1, 0
WHERE NOT EXISTS (SELECT * FROM `#__extensions` e WHERE e.`type` = 'plugin' AND e.`element` = 'article' AND e.`folder` = 'schemaorg' AND e.`client_id` = 0);
It is an INSERT INTO ... SELECT ... statement which should not have a VALUES key word.
Your statement has still VALUES but no SELECT.
This will result in an SQL syntax error.
So it seems you did not check your SQL e.g. in phpMyAdmin.
Thank you @Dileepadari this is a very nice addition to the workflow 👍
Hi @richard67, sorry for that. Can you let me know how can i test with PhpMyAdmin. Should I replace the #__extensions with the table name including table prefix?
Hi @richard67, sorry for that. Can you let me know how can i test with PhpMyAdmin. Should I replace the #__extensions with the table name including table prefix?
That would be one way to test it on the current Joomla installation.
Another way would be to copy the CREATE TABLE statement from the base.sql and use it as it is to create an #__extesions table without the suffix to be replaced, then you could fiddle with SQL in that table without having to replace the prefix in your SQL statement and without messing up the table from the Joomla installation.
And when developing database stuff for Joomla it is a good idea to have a PostgreSQL database in addition to the MySQL (or MariaDB).
Thanks for the info, it helps a lot in testing quickly.
thanks for adding the filter etc
This pull request has been automatically rebased to 6.1-dev.
| Title |
|
||||||
| Labels |
Added:
PR-6.1-dev
|
||
| Labels |
Added:
Updates Requested
Removed: PR-6.0-dev |
||
| Labels |
Added:
PBF
Removed: Updates Requested |
||
This pull request has been automatically rebased to 6.2-dev.
| Title |
|
||||||
@Dileepadari - thank you for the PR - are planning to work on this? as there are changes requested.
are planning to work on this? as there are changes requested.
Thank you for the reminder, will update this ASAP
I wanted to use this on a site and tested it by making an installable plugin from it. See github.com/HermanPeeren/workflow-plugins/tree/main/src/plg_workflow_category.
$context into the component name and the table name. Then instantiate the table directly from the component's MVCFactory.$pks is an array, because it can be used in a batch command. Boot the component before the loop.<files> in the manifest. That js is now in the media folder.I wanted to use this on a site and tested it by making an installable plugin from it. See github.com/HermanPeeren/workflow-plugins/tree/main/src/plg_workflow_category.
$context into the component name and the table name. Then instantiate the table directly from the component's MVCFactory.$pks is an array, because it can be used in a batch command. Boot the component before the loop.<files> in the manifest. That js is now in the media folder.I wanted to use this on a site and tested it by making an installable plugin from it. See github.com/HermanPeeren/workflow-plugins/tree/main/src/plg_workflow_category.
HP:) to make it more general, not only com_content: split $context into the component name and the table name. Then instantiate the table directly from the component's MVCFactory.$pks is an array, because it can be used in a batch command. Boot the component before the loop.<files> in the manifest. That js is now in the media folder.| Labels |
Added:
PR-6.2-dev
Removed: PR-6.1-dev |
||
| Category | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins JavaScript Repository NPM Change Libraries | ⇒ | SQL Administration com_admin Postgresql Language & Strings JavaScript Repository Installation Libraries Front End Plugins |
- Some minor things, like adding a return type to a method (2x), and a static cal to a non-static method,
Thanks @HermanPeeren for taking time and giving your detailed review and suggestions, I have updated the pr accordingly. Please test it if you get some time. Thanks everyone for the reviews.
| Labels |
Removed:
NPM Resource Changed
|
||
Category is not displayed when edit item (the field is disabled)
Thanks @heelc29 for the review, I resolved all the comments you have given but for the category not showing part, I am not sure why its not displayed. The category change is disabled when you are editing the article but still you will be able to see the category. you will be able to set the category if you are creating the article or if the category is not set. Please provide me with theme details if you still can't see the category, I'll try to debug.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
| Labels |
Added:
Conflicting Files
|
||
| Labels |
Removed:
Conflicting Files
|
||
| Category | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins JavaScript Repository Libraries | ⇒ | SQL Administration com_admin Postgresql Language & Strings JavaScript Repository Installation Libraries NPM Change Front End Plugins |
@Dileepadari why is the category change disabled? I might want to change the category myself?
| Labels |
Added:
NPM Resource Changed
|
||
@Dileepadari why is the category change disabled? I might want to change the category myself?
Hi @coolcat-creations , Thanks for the review, I think it makes sense to have flexibility over other workflows, I have implemented it and updated it here. Thanks for the suggestion.
@Dileepadari why is the category change disabled? I might want to change the category myself?
Hi @coolcat-creations , Thanks for the review, I think it makes sense to have flexibility over other workflows, I have implemented and updated it here. Thanks for the suggestion.
The plugin needs to be added to the list of core extensions here libraries/src/Extension/ExtensionHelper.php