Share » Forums » Developer » Single click copy then edit?

Single click copy then edit?

Single click copy then edit?

Monday 26 March 2007 11:30:25 pm - 4 replies

Author Message

Ɓukasz Serwatka

Tuesday 27 March 2007 12:09:12 am

This is not supported by default. Copy is finalized with publish operation, so It should be possible to run after-publish workflow event that redirects user to edit mode after copy, then you can have new node/object ID, etc. You can give a try.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brendan Pike

Thursday 29 March 2007 9:40:41 pm

Thanks for your reply Luke

If I was to use a work to throw a user immediately into edit mode after making a copy how would that workflow distinguish between a normal publish object and a fresh copy?

Also any idea's about how to rename or make the copied object easy to identify?

Cheers

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Kristof Coomans

Thursday 29 March 2007 11:37:14 pm

Hi Brendan

You can also redirect to edit mode with a small hack in kernel/content/copy.php:

Replace

return $Module->redirectToView( 'view', array( 'full', $newParentNodeID ) );

with

return $Module->redirectToView( 'edit', array( $newObject->attribute( 'id' ) ) );

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

James Ward

Friday 25 April 2008 9:28:59 am

Kristof,
You are the man. I can't tell you how much time this saved me. Hack works great in ez3.10.

working at www.wardnet.com
blogging at www.jamesward.ca

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu