You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cnk:
Even if you are not coming from WP that package might provide some best practices. We did our imports before the revision system and site history were as extensive and useful as they are now so we didn't bother to try to get revision tracking right
(basically if you don't save an initial revision along with the page, you don't have an original state to compare to when you subsequently edit and then look at the page history)
@mgax:
Right, a management command is a fair process for a one-off import; I'm looking to build something where content managers can monitor the process and intervene if something got imported the wrong way (e.g. wrong page type).
I'm already looking at wagtail-wordpress-import to see what bits I can reuse.
Thanks for the initial revision heads up, I'm pretty sure I also got bit by that issue on a previous project 🙂 (edited)
@cnk:
I always write my import scripts so each page gets an import id and the script can be run multiple times.
@mgax:
Yep, I'm thinking that re-adding the same page will update it in place. I'm sure that's going to become interesting when the page needs to move to another parent.
@cnk:
If that page itself has children, then ya. But moving leaves shouldn't be hard. Take a look at the django-treebeard docs for the api details.
We have a main site that syncs news and event pages to another instance so department sites can display them inline. It is fairly simple - but by definition all those pages are tree leaves (no subpages)
@mgax:
This sounds promising. Thank you very much for the pointers! I'll come back if I have anything interesting :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From the Wagtail Slack,
Beta Was this translation helpful? Give feedback.
All reactions