Limit Text Obtained from a Content Type in Plone

Useful if you want to use just part of the body text of an item instead of writing a description for each one.
tal:define='cropText nocall:context/@@plone/cropText'
tal:content='structure python:cropText(item.getText(), 200, "…")'

Arguments: text, length, and characters to use as ellipsis

Alternative:

tal:content="structure python:context.restrictedTraverse('@@plone').cropText(item.getText(), 200, "...")

This will work inside of a portlet:

MUST INCLUDE GETOBJECT

tal:content="structure python:context.restrictedTraverse('@@plone').cropText(item.getObject().getText(), 200, "...")