Convert Archetype Content to Folder

I have an archetype content type that wasn't previously papal. Now I installed it as a folder. What attributes or properties need to be changed so that any previously created data can be transferred?

I read the following documents:

General Installation Update Steps

Converting one type of content to another

I followed the above upgrade steps guide, but I don’t know which attribute or properties need to be changed.

+4
source share
2 answers

You can use Products.contentmigration . See the doc document for how to use it, it should not be too complicated: just define your CustomQueryWalker and the mapping between your two content types. To find out which field you want to map to, just put pdb somewhere in the content view and view the content schema.

similar question here: Migrating from (now deprecated) custom ATImage content type

+2
source

I encountered the same problem when trying to transfer unpacked types to a folder: http://pypi.python.org/pypi/collective.folderishtypes

which helped: in the context for conversion, call @@ migrate-btrees view [1] to initialize the btree structure [2]. I assume your new Archetype content is based on plone.app.folder.

[1] defined in: plone.app.folder.migration.BTreeMigrationView.

[2] The main work is: Products .BtreeFolder2.BTreeFolder2Base._initBtrees.

+2
source

All Articles