berkalpyakici / wagtail-import-export-tool

Import/Export tool for Wagtail CMS (built on top of Django), that supports pages, images, documents, and snippets.
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

Replace existing page #3

Open Benoss opened 5 years ago

Benoss commented 5 years ago

Looks like you are skipping existing pages.

Is there a way to replace an existing page with the data from an exported one?

Use case

berkalpyakici commented 5 years ago

There currently is not one, but I believe it would be trivial to add that feature. Would you find it useful if we had a checkbox on import page to skip/replace existing pages? @Benoss

Benoss commented 5 years ago

Yeah that would be awesome yes. Another feature that would be useful with this feature would be a management command to import and export programmatically so that I can for example "reset" the staging website with prod by doing something like:

python manage.py wagtail_import_export_tool export page-slug-1 page-slug2 page-slug-3 --out=export.zip
python manage.py wagtail_import_export_tool import export.zip --replace-existing=true
berkalpyakici commented 5 years ago

I'm really busy with school work, but I will get into this sometime soon!

Benoss commented 5 years ago

Maybe you can add the Apply the "Hacktoberfest" label https://hacktoberfest.digitalocean.com/details