Skip to main content

Textile Markup Content Element (textile)

This is an Extension for the TYPO3 CMS. The official download page is here. With the integrated Markup parser “Textile”, even more complex articles can be rendered. Of course, Markup Language is not suitable for every editor. But many developers and editors of software documentation should already know and prefer Markup.

Features

  • Provides a new content element of type “Markup” wich lets you create Textile Markup Language code
  • Provides a handy ViewHelper for your own extensions!
  • Based on the “Textile” Markup Language parser: textile-lang.com

Screenshots

Textile Markup Example

  1. Hello World!
  2. How are you?

For Developers

The extension creates a new content element called Markup. In the program codes, the content element (CType) is called textile. The markup content is written in the bodytext field of the tt_content table. Just like a text content element. This also enables easy switching between normal rich text content and Markup content.

In the frontend, the markup content is rendered by the integrated ViewHelper. You simply pass the ViewHelper any string or markup text as an argument.

How to use Markup ViewHelper in your custom extension

The Markup ViewHelper was developed as part of an intranet application with TYPO3. It is ideal for custom extensions that allow users to produce formatted content. Like a forum, a comment function or a social media platform. All you have to do is install the extension and integrate 2 lines of code into your fluid templates.

// Usage of Textile ViewHelper in your extension or fluid template
{namespace textile=SIMONKOEHLER\Textile\ViewHelpers}
<f:textile.parse content="{content}">

Composer Installation

composer require simonkoehler/textile