Attention

This document was written for an unsupported version of Plone, Plone 2.1.x, and was last updated 1240 days ago.

For more information, see the version support policy.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Converting text with Portal Transforms and the MIME Types Registry

In this tutorial, you will learn how Plone and Archetypes keeps track of content MIME types, and how PortalTransforms enables you to convert between content of different MIME types. You will learn how to register a new MIME type, and how to create new transforms.

Warning: This item is marked as outdated.

  1. Introduction Background on MIME types, MimetypesRegistry and PortalTransforms
  2. Mimetypes Working with the MimetypesRegistry's mimetypes_tool to describe a custom MIME type
  3. Transforms Working with PortalTransforms' portal_transforms tool to register new transforms, and writing tests for transforms.
  4. Using the transforms Using the transforms via the PortalTransforms API, and automatically in Archetypes fields.

All content on one page (useful for printing, presentation mode etc.)

 

Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.