Mmmm I don't know how to explain it... would be fine when we create a story with a workflow associated, that the workflow menu would be expanded.

For now it is collapsed by default, so the user has to click on it to see possible states.

CommentFileSizeAuthor
#7 StatesWithDesc.png21.21 KBmarknewlyn

Comments

jvandyk’s picture

Assigned: Unassigned » jvandyk
Status: Active » Fixed

The workflow fieldset now defaults to the expanded state.

Julien PHAM’s picture

Where to download the new cvs version? On project cvs webpage it is still the 1.30 version...

// $Id: workflow.module,v 1.30 2006/02/16 18:27:15 merlinofchaos Exp $

Julien PHAM’s picture

Julien PHAM’s picture

Status: Fixed » Active

Mmmm there's a little problem with your fix, it is that no radiobutton are selected by default... with the previous dropdown box, the first item is selected by default. And I need this, because I need to trigger at least one action when my user posts an article.

And... errr... why did you put radio buttons? I liked the dropdown box... perhaps an ideal solution would be to be able to setup the workflow to either use radio buttons or dropdown box, and also to setup for radio button if the first item should be selected or not by default. (of course for dropdown box we have no choice)

Thanks

Julien PHAM’s picture

Category: feature » bug

btw there's a bug now. because if we submit an article without checking a radio button, and as none is checked by default, we have an error message : an illegal choice has been detected.

So really there should be a default choice...
And really I preferred the dropdown box...

marknewlyn’s picture

Hi

The discussion that led to the bullets instead of drop down menus can be found here:
node/46977

I asked for a description of each state to be added to the module so that users can see the list of descriptions
when changing the state. For my site I cannot guarantee that volunteers will read the manual or realise the implications of their actions so I really need to have a list on the page. All the information users require must be available at all times. I also think that having state descriptions is a good idea in general for a user friendliness point of view.

I use the states to trigger a number of actions which affect documents other than the one the user may have access to directly and I need this to be clear to the user and its hard to make the state name contain this information without making state names very long.

In general you'll need to describe the states somewhere for your users and the most natural place is to include this in the workflow module which defines the states.

Its more work for other people (or me but not this week) :-/ but all of these things could be options:
-> collapsed or not
-> radios with descriptions OR list with or without descriptions

Just my two cents worth ... I am not very good yet with Drupal and PHP but I am prepared to help out as much as I can.

Mark

marknewlyn’s picture

StatusFileSize
new21.21 KB

I should have thought about my other message and made it clearer. The workflow is very important for my site to work and I agree that I want my workflow fieldset expanded by default but I can imagine that other people would like to hide it more and would want it collapsed by default.

My current workflow usage can be seen in the attached png file. I have LaTeX options which are only for advanced users and I want to discourage people from bothering with any of those options but the workflow is important so I want it open to start.

I think that whether or not you want it collapsed by default will either depend on the workflow or which node type you are working on. Its simple to have a per workflow setting for collapsed or not to start off with but I guess the most general case would be to have a per node type setting.

Mark

Julien PHAM’s picture

As for myself I use workflows for publishing articles.
My workflow name is : "this article is"
And my states are:
- in draft
- in moderation queue
- published

So, a basic user can compose an article and put it as a draft or in moderation queue, but cannot publish it.

What's still missing though is a way to prevent a user to edit a published article, but I don't think it is workflow side... but once the article is published, with workflow he can edit it, and then put it back in moderation queue or in composing mode, as the publish mode is not available to him... only problem then is that he can destroy it... and I don't like this...

And other problem too is that there is no radio button checked by default...

jvandyk’s picture

And other problem too is that there is no radio button checked by default...

This is fixed. When a user creates a node, the radio for the first state available to the user is selected.

Regarding a user being able to edit a node that he has created, even though it is in the published state: use the action in actions.module to change node ownership when the workflow enters the published state, or implement an action for a node access module and fire that.

Julien PHAM’s picture

But if I change node ownership, then the article will be displayed as "published by" and another one isn't it?
I don't want that, I would like people to sign their own articles...

Kieg Khan’s picture

Title: Having the workflow automatically in dropdown state » Prevent author from editing published content

Hello,
Could you use Taxonomy and taxonomy_access, then get the workflow module to move the content into the published taxonomy, which the author cannot edit? This way the content is still available for viewing and shows the correct author information, it is just in a different taxonomy area.
Cheerio

Julien PHAM’s picture

Mmm why not, thanks, I'll try this...

Julien PHAM’s picture

A little issue though... how can I change the taxonomy term? There is no such option in the action... Only actions I can create are "change node author" and "send email".

Or there's something else I do not know?

jvandyk’s picture

Anyone can write an action. Look at actions.inc for inspiration. An action to assign a taxonomy term for a node would be simple. If I weren't so pressed for time, I'd write it today.

Julien PHAM’s picture

Ok, I can wait until tomorrow then ;) I'm joking of course...
I know nothing about php, and moreover I have no idea of the variables involved to do this...

But I'll try... what I would like is an action who does not change the taxonomy term, but the taxonomy word, this way I can have the same terms in two different words, one beeing open for editing, the other not...

merlinofchaos’s picture

BTW, use the na_arbitrator module and enable workflow_access to get this functionality.

moshe weitzman’s picture

Status: Active » Fixed

also, 'edit own story', and such are permissions now that should not be granted with this workflow. i think we have this functionality now

Anonymous’s picture

Status: Fixed » Closed (fixed)
marcoBauli’s picture

Version: » 6.x-1.x-dev

Hello Julien,

did you got that "taxonomy term" action at #13 to work in the end?..i am looking for the exact same thing!

Thank you in advance