Usefull to transfer Page-, PageContent-, Alias-, Placeholder-Objects from one CMS System to another.
- all djangocms plus plugins and descendants
- djangocms-alias plugins
- djangocms-text plugins
- Go to Django Admin > Transfer
- Create new PageExport model
- Select a Page to export
- Save PageExport model
- Copy generated json data section and switch to other system for
Page Import
Note: always the latest PageContent obj is used to export a Page
- Go to Django Admin > Transfer
- Create new PageImport model
- paste in copied json
- Select parent page or leave blank to import into top level.
- Save Model
- Click Import Button
See Page Export, but with AliasExport model
See Page Import, but with AliasImport model
- Go to any CMS Page and select
Copy all
in a Placeholder menu to copy all plugins to clipboard. - Go to Django Admin > Transfer
- Create new PlaceholderExport model
- Save PlaceholderExport model
- Copy generated json data section and switch to other system for
Placeholder Import
- Go to Django Admin > Transfer
- Create new PlaceholderImport model
- paste in copied json
- Save Model
- Click Copy to Clipboard Button
- Go to any Page and select Placeholder > Paste menu
ExportItem Model:
type: Page, Placeholder, Alias
data: {
page_id
reverse_id
languages
pages: [],
page_contents [ # home.get_content_obj(), home.get_child_pages()
{
language: de
title
page_title
menu_title
meta_description
in_navigation
template
placeholders: [
{ # hc_header.get_plugins().filter(id__in=hc_header.get_plugin_tree_order('de'))
slot: header,
extra_context: {},
plugins: [
{
plugin_type: GridContainerPlugin, # plugin.get_children()
config: {},
children: [
{
plugin_type: AliasPlugin,
config: { bei bildern: sha1 mit, bei internal links: absolute_url },
children: [
]
},
]
},
{}
]
}
]
},
{
language: en
title
page_title
menu_title
meta_description
in_navigation
template
}
]
}