Raw HTML in body text after importing content using a transmitter

I use the transorgrifier recipe to import some data from drupal into a Plone 4.1 build. The design is based on https://github.com/claytron/drupal-plone-transmogrifier (basically I updated it to use plone 4.1 instead of 4.0). Import works, I successfully imported data from drupal site to my plone site. The only problem is that the html tags from the imported html show as literal tags.

If, after a successful import, I manually go to each element and select "edit" and then "Save", then html is interpreted correctly, but there would be a lot of editing and saving to fix my problem.

see screenshot of newly imported content showing html tags.  html tags showing

The actual field import scheme is (I believe) the one shown below:

 [text_mimetype]
 blueprint = collective.transmogrifier.sections.inserter
 key = string:_text_mimetype
 value = string:text/html

I experimented using text / structured instead of text / html in a project, but this gave the same result:

I need either an additional drawing that invokes html interpretation, or hints on how to ensure that my html is interpreted upon import.

The full list of drawings used in my pipeline is shown here: https://github.com/claytron/drupal-plone-transmogrifier/blob/master/src/my.migration/my/migration/config/base.cfg

+5
source share
3 answers

Plone 4.0, Plone 4.1, , " " PLIP, Plone 4.1. PLIP , .

+2

wsapi4plone.core.

: Pin zope.contenttype 3.5.5 ( 4.1.1)

: PLIP # 9938 - http://dev.plone.org/plone/ticket/9938 .

+3

, "text/html" "_text_mimetype"

:

[mimetype_encapsulator]
data-key = text
mimetype = python:item.get('_%s_mimetype' % key)
# replace the data in-place
field = key
condition = mimetype

: http://pypi.python.org/pypi/plone.app.transmogrifier#mime-encapsulator-section

In any case, I experimented with the fact that it is not necessary to encapsulate the html text, it also works with a simple string.

Bye, Giacomo

+2
source

All Articles