-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Feature/New Publishing Workflow #20244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…blishing_workflow into archived-status # Conflicts: # administrator/modules/mod_menu/preset/enabled.php # installation/sql/mysql/joomla.sql
…le transitions to edit view of article
* fix getting state in front end menu-item and module * fixing featured list view with transitions and remove publish, unpublish, trash buttons * adding language terms for workflow
Remove unneeded translation
Remove unneeded description
Remove unneeded description
# Conflicts: # media/system/js/core.min.js
I can not forget about the numbers 0/1 / -2 because they are in the table #__content If you replace them with something else. As suggested in this PR, we will get an extra load and the inability to disable workflow. Do not touch databases, models. Otherwise, disabling this component, as well as future migration from 3.x will be extremely problematic and can cause non-removable post-drives.
Turn this much more convenient than the proposed version of Workflow, even considering its future development. Because I change state in one click. In addition, there are records of who and what did and of course notifications. Specific group of users. P.S @nibra You have already tested this PR? On tried on it to moderate at least 10 material? |
|
I can say that even if I improved the proposed option. Simply moderation of content with such workflow takes much more time. Than without it. Even if you do this step by step with crm |
Not necessarily. Depends on the implementation (which I tried to say should be treated as non-existent for the moment).
You cannot disable the current implementation of the publishing workflow, because it is hard wired all over the code base. You cannot extend it to cater for additional (fx. review) states. It is completely different from the (technically) same thing with other states in fx. a shop component.
There are to possible approaches (and maybe a mix of those two):
The final solution might be a separate map and a state column in the DB table like now, filled with the appropriate value as a simplified Perspective on the real state.
That will in no way change.
That's something that should be provided by plugins reacting on the StateChange events. That functionality does not belong to the workflow extension.
Workflow !== Content Moderation. The latter needs a sophisticated workflow and a working versioning system (which we haven't got, since our versioning feature isn't able to manage drafts of changes to published articles). |
This workflow (in this PR) in only content moderation. There's nothing more he can not do. And if the workflow will consist only in mapping the new state, then with this and com_tags to cope. Workflow is often part of automation. The principle simply pressed the button externally changed the state after the fact, 5-10 values can be changed. This PR is built on the principle of changing Publishing. This idea lies at its basis. What is displayed in the title And as already mentioned here repeatedly, this concept is not applicable to anything except com_content and similar components If you abandon the current concept, and start everything from the very beginning, namely with planning and discussion, it makes sense to create a separate repository. And to discuss everything there. My two workflow visions described above ( #20244 (comment) ). As it seems to me @bembelimen understood what he meant, and maybe even could provide an approximate implementation |
Validate before status change to trashed if no items are assigned
As Niels stated you can add unlimited publishing states to the workflow, the condition have only one task: to determinate if an item is visible/active/allows to do something (1) or not (0) so you see anything other conditions? Archived => visible => 1, if you want to display only the archived ones you filter directly by this state. |
Fix minor html errors
Publishing workflow library
…g-workflow # Conflicts: # administrator/components/com_content/Helper/ContentHelper.php # administrator/components/com_content/View/Articles/HtmlView.php
|
After speaking with @brianteeman and @wilsonge I'm closing this PR, improve some code and will reopen it. Thank you for your contribution. |
|
This is a complete nightmare on Beta7 - I have no idea how to simply write an article and have its status set to published. Now the only thing I can find is to check the article in the list and use the actions dropdown and select Publish - and I get this message WTF does that mean? The whole workflow thing needs to be turned off by default and enabled for those who actually want to use it. Write and publish - that's my workflow. J4 has become a nightmare of complexity - I hope the release is postponed forever until it at least works in a familiar way. Rant over, but this does need a serious rethink. |
|
@rogercreagh Go to com_content options then integration tab and disable workflow. Nobody forced you to use this if you don't have a valid use case for it... |
It is. |
Not on my beta7 updated from beta6 updated from beta5 as installed it isn't. |
|
On a clean install it is not enabled and never has been. The sample data does however use the workflows as an example of what it is and how to use it. (not commenting on the workflow functionality) |
|
@brianteeman Ahha, that'll be it. |
|
Please write that as a new issue. (not many people see closed issues like this). I think a good option would be to have two sets of sample data. With/Without workflows. |
|
here you go |
Hello everyone,
with the Google Summer of Code 2017 project, we implemented a new workflow extension in Joomla! 4, which replaces the current publish/unpublish/trashed/archived state. We want to implement a flexible and unlimited workflow which can be extended for other extensions, too.
Presentation at the JWC 2017: https://www.youtube.com/watch?v=5e-HECq44B0
Additional Information
https://docs.joomla.org/Publishing_Workflow
https://docs.joomla.org/GSOC_2017_Project_Ideas#Project_VI:_Publishing_Workflow_in_Joomla.21
Testing Instructions
Install the Joomla! 4.0 and go to the Article manager, there you'll find a new menu entry "Workflows", play with it around. You can also use the implemented default workflow.
Workflows will be assigned in the category parameters.
Needed help
As I mentioned before, this feature was a Google Summer of Code project. Sadly I'm the only person left and I can't solve everything in a short time, so I'm looking for help.
One big unsolved issue (beside some clean ups) is the migration path from Joomla! 3.x to Joomla! 4.x. Here I need help (perhaps @laoneo can give some tips)...
I would also like to see better Javascript, perhaps @dgrammatiko could you help me here?
And last but not least there is a lot of clean up to do. I would be very grateful for every PR, which improves the workflow code. Thank you in advance.
Images
Comments, tips, support would be very appreciated!