? ? ? ?
avatar ggppdk
ggppdk
19 Aug 2018

How (multi-record) buttons according to transitions of current workflow like
"Publish"
"Unpublish"
"Trash"
"Needs updating"
"Some transition name 1"
"Some transition name 2"

can be re-added to the toolbar ?

please see a comment here:
#21247 (comment)

@bembelimen

..., perhaps we could implement a in some way "intelligent" dropdown button, which offers transitions depending on the selected articles...

as an idea it seems good, but lets think of it

it would be a little complex,
i mean,
we do not have such a thing for components that do not implement workflow,
where things are simpler,
and instead we use a general check on component-level ACL to decide showing the buttons

but let's say that by some extra work it is done

and then i want to set 7 items to "Trash" stage,
i select them, but the "Trash" button does not appear,
why it does not appear ?
because 1 out of the 7 does not allow be to set it to "Trash" (for whatever reason either due to ACL or due to its current stage),
do i have to start searching to find it ?, i will think it is a bug that the button is not showing, and i would be frustrated and confused

Maybe it should be just
-- 1 configuration option at every transition configuration
"Add transition as a toolbar button"

And then also for both workflow and non-workflow extensions do this
the "transition execute" task or the "change state task"
must have some intelligence and some more feedback

  1. skip records not possible to change
  2. Feedback that on page reload the lines (records) that could not be changed are marked
avatar ggppdk ggppdk - open - 19 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2018
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Category com_workflow Feature Request
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Category com_workflow Feature Request com_workflow UI/UX
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Build staging 4.0-dev
avatar brianteeman brianteeman - change - 19 Aug 2018
Labels Added: ?
avatar brianteeman brianteeman - labeled - 19 Aug 2018
avatar brianteeman brianteeman - change - 19 Aug 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 19 Aug 2018
avatar infograf768
infograf768 - comment - 19 Aug 2018

Very good questions.

avatar lavipr
lavipr - comment - 7 Sep 2018

I will tackle this task. I am also in conversation with bembelimen.
What should happen: These four buttons will be re-added: "Publish, Unpublish, Archive, Trash". These are activated each time one or more articles are selected from the list and the corresponding transition options (e.g. set this article to "trashed") are available. When clicking the respective button, the respective transition (from the current stage to the desired stage) should be executed.

That is certainly an important question: What should happen, if several articles have been selected, which e.g. should be set to "trashed" and not all have the corresponding transition?
There are two ways to handle this, as it has been mentioned.

  1. When selecting articles, the buttons are only activated if they have the same condition goals (e.g. that the article can be set to "trashed"). Otherwise, they will be disabled again. However, if the user is not aware of this behavior, it can be really confusing.

  2. The transition should be executed on articles that have this transition to "trashed" as a possibility, otherwise the not corresponding articles should be skipped. The user gets an error message in case of a skip. However, this could also be confusing as it is not possible to see at a glance which articles have common properties in the form of 'they can both be set to trashed'. If the user is unlucky, only one of 10 selected articles will be changed to the desired state.

How do you see this?

avatar brianteeman
brianteeman - comment - 7 Sep 2018

How does it work with the batch change workflow

avatar bembelimen
bembelimen - comment - 7 Sep 2018

The batch functionality is not connected to the buttons. The batch thing was an idea to give Super User a "short cut" for changing workflows/stages on articles.

Ofc it could be used to "publish" a bunch of article, but that's just a side effect.

avatar brianteeman
brianteeman - comment - 7 Sep 2018

I meant how does the batch cope with the scenario described by @lavipr

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Sep 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-09-27 05:10:41
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 27 Sep 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 Sep 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Sep 2018

closed as having Pull Request ##22393

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2019
Labels Added: ? ?
Removed: J4 Issue ? ?
avatar franz-wohlkoenig franz-wohlkoenig - unlabeled - 20 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Apr 2019

Add a Comment

Login with GitHub to post a comment