You might want to check out this thread and maybe start a collaboration with 
Steve:
http://orchard.codeplex.com/Thread/View.aspx?ThreadId=241520

From: Scott Cate [mailto:[email protected]]
Sent: Friday, January 14, 2011 9:15 AM
To: [email protected]
Subject: Re: Editing Workflow

this would be a great walk-through step-by-step tutorial if someone builds it.

@ScottCate
602.418.0770


On Fri, Jan 14, 2011 at 10:11 AM, Sebastien Ros 
<[email protected]<mailto:[email protected]>> wrote:
Hi Simone,

Quick and dirty design for a custom module:

-          Add a dynamic field to the content types you want to manage with a 
workflow. Bertrand has done one which allows you to define a list of allowed 
values (drop down list). Otherwise there is a tutorial on creating field on the 
website.

-          Create a class implementing IAuthorizationServiceEventHandler which 
will do the security checks based on your very own logic, including this 
previously added dynamic field, the current user's roles, and the access 
content item. You can find several implementations in the source code as an 
example.

-          You can optionally implement other event handlers to trigger 
specific actions like automatically publishing contents, or translations, when 
a content item with specific properties are changed, by implementing 
IContentHandler.

This is definitely something which can be reusable by other users, but Orchard 
is also great because it can be easily customized. And everything here can be 
done inside a module which means you don't even touch Orchard source code. You 
can also go further and create a Settings part which allow customization of 
your module.

Hope this helps you, and also teaches something to other readers.

Orchard, to infinity and beyond
Sebastien

From: Simone Chiaretta 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Friday, January 14, 2011 3:05 AM
To: 
[email protected]<mailto:[email protected]>
Subject: Re: Editing Workflow

Yep, and then I should find a way to enforce a workflow based on permissions, 
and block certain actions based on at which stage of the WF the content is.

Simone
On Fri, Jan 14, 2011 at 12:02 PM, Richard Garside 
<[email protected]<mailto:[email protected]>> wrote:
It doesn't sound like you'd need to rewrite all of Orchard.

Content would need a field that said it was waiting for approval. You'd then 
need to build a content approval screen. Orchard has built in support for 
translations.

It's more complicated than anything I've done so far, but it doesn't sound 
undoable. Someone from the Orchard Team will probably be able to advise better 
on the best way of doing this and how hard it would be.


--
Richard Garside
Web developer and designer

Old Broadcasting House, 148 Woodhouse Lane, Leeds, LS2 9EN.
Web: www.nogginbox.co.uk<http://www.nogginbox.co.uk/>
Email: [email protected]<mailto:[email protected]>
Twitter: _richardg

On 14 January 2011 10:51, Simone Chiaretta 
<[email protected]<mailto:[email protected]>> wrote:
Yep, but a module that takes over the complete creation of everything... 
like... rewriting orchard :)

On Fri, Jan 14, 2011 at 11:50 AM, Richard Garside 
<[email protected]<mailto:[email protected]>> wrote:
Hi Simone,

There is no publishing workflow built into Orchard at the moment.

It's on the future roadmap:
http://orchardproject.net/docs/feature-roadmap.ashx
but this list is not in priority order.

Until then I'd say that creating a module for this would be a good way to go.


Best wishes,
--
Richard Garside
Web developer and designer

Old Broadcasting House, 148 Woodhouse Lane, Leeds, LS2 9EN.
Web: www.nogginbox.co.uk<http://www.nogginbox.co.uk/>
Email: [email protected]<mailto:[email protected]>
Twitter: _richardg
--- You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>. To unsubscribe 
send a blank email to 
[email protected]<mailto:[email protected]>



--
Simone Chiaretta
Microsoft MVP ASP.NET<http://ASP.NET> - ASPInsider
Blog: http://codeclimber.net.nz
RSS: http://feeds2.feedburner.com/codeclimber
twitter: @simonech

Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"
--- You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>. To unsubscribe 
send a blank email to 
[email protected]<mailto:[email protected]>
---
You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>.
To unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>

--- You are currently subscribed to orchard-discuss as: 
[email protected]<mailto:[email protected]>. To 
unsubscribe send a blank email to 
[email protected]<mailto:[email protected]>


---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to 
[email protected]

Reply via email to