Hi Jasha, I got it to work very easily (thanks a lot! :-) 1. Identified the ZIP file in my current codebase
trunk/cms-customized/config/servermanager/projects/sample/workflows/ReviewedActions.zip 2. Checked the version (cat metadata.properties) and any previous patch to the original Workflow project (if you use diff, please add --strip-trailing-cr); my version is 1.04.08 3. Checked out the latest tag of Workflow project svn co http://svn.hippocms.org/repos/hippo/hippo-workflows/tags/Release-WFREVACT-v1_04_14 cd Release-WFREVACT-v1_04_14 [edit project.properties] [add first line] maven.repo.remote=http://repository.hippocms.org/maven,http://bluesunrise.com/maven,http://repo1.maven.org/maven maven plugin:download -Dversion=1.01.00b02 -DartifactId=hippo-workflows-plugin -DgroupId=hippo 4. Customize the deletion action in order to disable it for published docs [edit Release-WFREVACT-v1_04_14/src/workflow/ReviewedActionsWorkflow.xml] [edit element /workflow/common-actions/acti...@name='delete'] adding after the last <meta> tag] <restrict-to> <conditions> <condition type="class" negate="true"> <arg name="class.name">nl.hippo.cms.workflows.reviewedactions.IsPublishedCondition</arg> </condition> </conditions> </restrict-to> 5. Build the workflow project cd Release-WFREVACT-v1_04_14 && maven workflow:prepare 6. Copy the ZIP file into the codebase cp Release-WFREVACT-v1_04_14/target/workflows-reviewed-actions-1.04.14.zip cms-customized/config/servermanager/projects/sample/workflows/ReviewedActions.zip If you now build and run the CMS, you shouldn't be able to remove any document, if published. HTH mau On Wed, Nov 3, 2010 at 9:57 AM, Jasha Joachimsthal < [email protected]> wrote: > You can probably unzip the workflow zip, modify the xml file with all the > workflow steps and zip the file again. > > Jasha Joachimsthal > > [email protected] - [email protected] > > Hippo > Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 522 > 4466 > USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • +1 > (707) 773 4646 > Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC H2T > 1S5 • +1 (514) 316 8966 > www.onehippo.com • www.onehippo.org • [email protected] > > > On 3 November 2010 09:49, Maurizio Pillitu <[email protected] > >wrote: > > > Thanks a lot Jasha! Will try to investigate in that direction and let you > > know. > > > > Cheers, > > mau > > > > On Sat, Oct 30, 2010 at 10:19 AM, Jasha Joachimsthal < > > [email protected]> wrote: > > > > > Hi Maurizio, > > > > > > > > > On 29 October 2010 16:58, Maurizio Pillitu <[email protected] > > > >wrote: > > > > > > > Hi everyone, > > > > > > > > I'm working on Hippo CMS 6.05.10 and I'd like to know if it somehow > > > > possible > > > > to prevent users to remove documents that are currently published; I > > > > remember this feature was implemented somehow, but I cannot find any > > > > reference or documentation. > > > > > > > > > > The default reviewed actions workflow in CMS 6 allows you to delete or > > move > > > a document that is currently published. In CMS 7 the only action you > can > > do > > > on a published document is to unpublish. Other actions are available if > a > > > document is unpublished. > > > If you want this same behaviour in CMS6 you'll have to modify the > > reviewed > > > actions workflow [1]. For the renameDocument function this check > already > > > exists and you can see its condition in [2]. Renaming a document is > only > > > possible if a document is unpublished. > > > > > > [1] https://wiki.onehippo.com/display/CMS/10.+Workflow > > > [2] > > > > > > > > > http://svn.hippocms.org/repos/hippo/hippo-workflows/tags/Release-WFREVACT-v1_04_14/src/workflow/ReviewedActionsWorkflow.xml > > > > > > Ciao, > > > > > > Jasha Joachimsthal > > > > > > [email protected] - [email protected] > > > > > > Hippo > > > Europe • Amsterdam Oosteinde 11 • 1017 WT Amsterdam • +31 (0)20 > > 522 > > > 4466 > > > USA • San Francisco 185 H Street Suite B • Petaluma CA 94952-5100 • > > +1 > > > (707) 773 4646 > > > Canada • Montréal 5369 Boulevard St-Laurent #430 • Montréal QC > > H2T > > > 1S5 • +1 (514) 316 8966 > > > www.onehippo.com • www.onehippo.org • [email protected] > > > ******************************************** > > > Hippocms-dev: Hippo CMS 6 development public mailinglist > > > > > > Searchable archives can be found at: > > > MarkMail: http://hippocms-dev.markmail.org > > > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > > > > > > > > > > > -- > > > > Met vriendelijke groet, > > -- > > Maurizio Pillitu - 0031 (0)615655668 > > Opensource Software Engineer > > Scrum Certified Master - http://www.scrumalliance.org > > Sourcesense - making sense of Open Source: http://www.sourcesense.com > > ******************************************** > > Hippocms-dev: Hippo CMS 6 development public mailinglist > > > > Searchable archives can be found at: > > MarkMail: http://hippocms-dev.markmail.org > > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > > > > ******************************************** > Hippocms-dev: Hippo CMS 6 development public mailinglist > > Searchable archives can be found at: > MarkMail: http://hippocms-dev.markmail.org > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > -- Met vriendelijke groet, -- Maurizio Pillitu - 0031 (0)615655668 Opensource Software Engineer Scrum Certified Master - http://www.scrumalliance.org Sourcesense - making sense of Open Source: http://www.sourcesense.com ******************************************** Hippocms-dev: Hippo CMS 6 development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
