How to set title and publish content created by the transmogrifier folders section?

67 Views Asked by At

I'm using collective.transmogrifier.sections.folders pipeline section to create parent folders of content I'm importing into Plone.

My problem is those folders are created without a title and are not being published.

How can I solve that?

1

There are 1 best solutions below

3
On

Try adding this sections to your pipeline (you may already have the second one):

# Publish all folders 
[publish_all_folders]
blueprint = collective.transmogrifier.sections.inserter
key = string:_transitions
value = string:publish
condition = python:item.get('_type') == "Folder"

# Actually run the given transition to update the workflow state
[workflowupdater]
blueprint = plone.app.transmogrifier.workflowupdater