Skip to content

Request: clone DjangoCMS Placeholder content #44

@ursomniac

Description

@ursomniac

I'm using django-modelclone on several projects. It's great!

However... :-)

If I apply it to a model using DjangoCMS's Placeholder field, it dutifully clones the model instance with the Placeholder field. However, it creates an empty placeholder. This would be OK, EXCEPT that my stakeholders complain that they have to re-create (most of) the original page's content within the Placeholder field.

What would be ideal is to ALSO recusively clone the plugin instances (or I suppose to optionally do so). DjangoCMS ties plugin instances to the Placeholder field (and some plugins can have child plugins so it's not conveniently straightforward) so (unfortunately) you have to create additional records in those tables if you clone the original page.

(I realize that this is probably out of scope for this package, since not everyone using it also uses DjangoCMS, and frankly, Wagtail does a better job at storing the custom content metadata, but this is the real-world situation I'm in. I suppose I could write my own cloning function, but that would mean mostly re-inventing the wheel just to get the enhanced functionality. But perhaps there's something in the existing package I'm missing.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions