Skip to content

Commit

Permalink
More details on post_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoistinen committed Mar 19, 2014
1 parent c7c23e5 commit f3e2819
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/extending_cms/custom_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -924,13 +924,14 @@ See also: `translatable_content_excluded_fields`_, `set_translatable_content`_
post_copy
---------

Can be overriden to handle more advanced cases (eg Text Plugins) after the
original has been copied.
Can (should) be overriden to handle the copying of plugins which contain
children plugins after the original parent has been copied.

``post_copy`` takes 2 arguments:

* ``old_instance``: The old plugin instance instance
* ``new_old_ziplist``: [unclear at time of this edit]
* ``new_old_ziplist``: A list of tuples containing new copies and the old
existing child plugins.

See also: `Handling Relations`_, `copy_relations`_

Expand Down

0 comments on commit f3e2819

Please sign in to comment.