Forums / Developer / Publishing Checked Resources

Publishing Checked Resources

Author Message

Mahesh Arvind

Tuesday 30 December 2003 9:54:02 pm

Hi,
I am having some Resources(articles, images, videos) in a folder. I want to publish only the resources that are checked by the admin. I have modified the resource class and added a checkbox field (Publish) into it. Now, when this checkbox is checked the resource is published.

The resources are submitted by the End Users. Now, when the end users submits the resources, the Publish checkbox appears in the submission form. So, when they check the publish option the resource gets published.

I only want the admin to be given the option to check the publish checkbox. How can this be implemented. Does anyone have any ideas?

Thanks.
Mahesh

Thanks & Regards
Mahesh

Paul Borgermans

Monday 05 January 2004 12:33:35 pm

Mahesh

You will need to adapt the edit templates for these specific classes. You can check who is editing, determine the group/role assigned and then display or not display the checkbox.

A good exercise in learning the template language

Alternatively, use the workflow system, it is made for that situations

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Mahesh Arvind

Tuesday 06 January 2004 6:29:51 am

Thanks Paul for the reply. I will check that one.

Thanks & Regards
Mahesh

Balazs Halasy

Tuesday 06 January 2004 6:45:14 am

If you need to have some sort of an approval mechanism then I suggest that you take a look at the approwal workflow. This is already built into eZ publish and ready for use. An example of how it can be set up is explained in the "Building an eZ publish site" tutorial:

http://www.ez.no/developer/ez_publish_3/documentation/building_an_ez_publish_site/the_guestbook/implementing_an_approval_mechanism

Dariusz Wlodarczyk

Tuesday 06 January 2004 1:55:51 pm

I see the bug in aproval mechanism is cleared. Is time to try define it ;)