Media fragment

Key point: A fragment containing non-PSML content.

Fragments are designed to contain PSML because PSML includes semantics that PageSeeder understands. It is the recommended markup language for most of your content.

Media fragments are designed for situations where you need to store non-PSML content, such as plain text, AsciiMath, MathML, or XML. The document template specifies the media type of the contents.

The media type determines which editor is used. 

Users with editing permissions can edit the contents of media fragments. Only media fragments with text and XML media types can be edited.

If media fragments have been configured, they are available to select in the drop-down when inserting a new fragment in a document.

For developers

The PSML element for a media fragment is <media-fragment>. It must include a mediatype attribute to specify the media type.

For more information, see the media-fragment element in the PSML reference on the PageSeeder developer’s website.