object copy/duplication -> force new attribute value

Author Message

Alessandro Cipriani

Monday 15 November 2004 2:03:26 am

hi all
i have to let the users of my site to duplicate the objects of class x.
i added a custom datatype to the class that creates a unique identifier (md5 of currentTyme) for the object.
My users will need to duplicate these objects to have a DIFFERENT one with the SAME values but, in order to have a real different object I'd like to have a new identifier for the copied object.

should i modify my datatype? how?
should i modify the ezContentObject->copy function?
is there a way?

best regards
alessandro

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.