2010/5/14 Thomas Negeli [celum] <[email protected]>

> if I copy an object including all attribute data (
> $documentContentObject = $templateContentObject->copy(false); //make a copy
> of the current version
> ), I can edit for example text attributes in the new object without
> problems.
> But if I have an image attribute in the object, if I change the attribute
> of the new object, also the old object attribute is changed.
>
> This seems to be a problem with the ImageAliasHandler.
>
> The question now is, how to correctly copy an object so that I can edit
> attributes without influencing the original object?
>
You need to create a new version of your object and publish it after editing
it (if you want to publish it, that is).

You can find that exact piece of code on ezpedia.org:
http://ezpedia.org/en/snippet/php_snippet_creating_new_content_object_versions
.

-- 
Bertrand
-- 
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public

Reply via email to