Legacy Stories
In Escenic legacy stories, the main text flow (usually referred to as
the story's body) is stored in a rich text field. A rich text field is
defined like this in the content-type
resource:
<field type="basic" name="body" mime-type="application/xhtml+xml"> ... </field>
In other words, it is a basic
field designed to
store XHTML content. It is displayed in CUE as a rich text editor. The
rich text editor provides a toolbar for formatting content, and also
allows the user to insert simple inline relations to images and other
stories. This rich text field, however, is only used to create the
main text flow of the story. Other fields are used for storing
structurally important elements such as the title/headline, lead text
and byline, and most relations to other content (images, videos, audio
files, other stories) are also stored outside the rich text field.
Here is a simple legacy story content type definition:
<content-type name="story"> <ui:icon>news</ui:icon> <ui:label>Story</ui:label> <ui:title-field>slug</ui:title-field> <panel name="main"> <ui:label>Main</ui:label> <field mime-type="text/plain" type="basic" name="slug"> <ui:label>Slug</ui:label> <constraints> <required>true</required> </constraints> </field> <field mime-type="text/plain" type="basic" name="leadtext"> <ui:label>Lead text</ui:label> </field> <field mime-type="application/xhtml+xml" type="basic" name="body"> <ui:label>Body</ui:label> </field> <field mime-type="text/plain" type="basic" name="dateline"> <ui:label>Dateline</ui:label> </field> </panel> <summary> <ui:label>Content Summary</ui:label> <field name="slug" type="basic" mime-type="text/plain"/> <field name="leadtext" type="basic" mime-type="text/plain"/> <field name="dateline" type="basic" mime-type="text/plain"/> </summary> </content-type>
For more information about how to define legacy rich text fields, see Basic Fields.