Skip to content

InQuant/djangocms-content-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DjangoCMS Content Transfer

Usefull to transfer Page-, PageContent-, Alias-, Placeholder-Objects from one CMS System to another.

Plugins supported:

  • all djangocms plus plugins and descendants
  • djangocms-alias plugins
  • djangocms-text plugins

Usage

Page Export to an other instance

  1. Go to Django Admin > Transfer
  2. Create new PageExport model
  3. Select a Page to export
  4. Save PageExport model
  5. 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

Page Import from an other instance

  1. Go to Django Admin > Transfer
  2. Create new PageImport model
  3. paste in copied json
  4. Select parent page or leave blank to import into top level.
  5. Save Model
  6. Click Import Button

Alias Export to an other instance

See Page Export, but with AliasExport model

Alias Import from an other instance

See Page Import, but with AliasImport model

Placeholder Export to an other instance

  1. Go to any CMS Page and select Copy all in a Placeholder menu to copy all plugins to clipboard.
  2. Go to Django Admin > Transfer
  3. Create new PlaceholderExport model
  4. Save PlaceholderExport model
  5. Copy generated json data section and switch to other system for Placeholder Import

Placeholder Import from an other instance

  1. Go to Django Admin > Transfer
  2. Create new PlaceholderImport model
  3. paste in copied json
  4. Save Model
  5. Click Copy to Clipboard Button
  6. 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
    }
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy