Monday 02 July 2012 10:29:28 am - 5 replies
My client wants to simplify the work of contributors using only the content class "article". This class has a checkbox attribute "Display in homepage". If checked, the article must be approved by validator's group, if not, it must be automatically published.
I don't know how to implement that.
I guess a solution would be create a custom workflow event based on the the approval one, which check the value of the attribute ? I never created custom workflow event, so I don't know if it's hard or if it can do this job.
The easiest solution is to use two content class, but is not the best for the client.
Is there any other solution ? (I didn't find it on this forum) Use a custom workflow event is it the good way to do ?
Modified on Monday 02 July 2012 10:51:39 am by Valentin Chauvin
Monday 02 July 2012 11:18:39 am
Yes, workflow is good idea. Using it you can change content object state just like here: http://share.ez.no/learn/ez-publish/ez-publish-knowledge-series-editorial-workflow-with-object-states
The other way is to publish in "publishing folder" (also using workflow), where only the validator can manage.
Here you can find the tutorial for workflows: http://share.ez.no/learn/ez-publish/creating-a-simple-custom-workflow-event/(language)/eng-GB
Monday 02 July 2012 2:28:54 pm
Thank you for your response, your first link is really interesting. (I already know the second one : )
I will try with a custom workflow event so.
I didn't understand the solution with "publishing folder". Is it possible to trigger an event if the content is published in a specific folder ?
Monday 02 July 2012 2:47:35 pm
By publishing folder I mean some invisible for other users (without permissions) folder where land objects to verify by validators. Then approval is just object relocation to public space.
In workflow you can move your article anywhere you want.
Before publish your workflow checks and optionally changes the article location.
Monday 02 July 2012 7:28:27 pm
Your reasoning is right. But some code must keeping (eg workflow) article unpublished until validator user approve it. User may still try to publish article. So it's just one way.
Another way is publishing (automated way) in secure folder.
Maybe you will come up with another yet...
You must be logged in to post messages in this topic!