The Editorial element should be able to contain a salutation, an introductory text, a call-to-action link, and a signature. Depending on the degree of freedom to be allowed, there are two ways to structure the module:
Static editorial
The structure of the element is predefined. For example, if there is to be an (optional) headline, an (optional) text and an (optional) button and these components are always to be displayed in the specified order.
Modular editorial
If the number and order of the article content is to be dynamic, it is advisable to create a modular structure. For example, if one (or more) buttons are to be added below the text, which in turn can be followed by a text.
Static Editorial
With a static structure, the [BLOCK] and [INPUT /] tags are added directly within the [ELEMENT] tag.
Template Source Code
Example: static editorial
- [ELEMENT name='editorial' label='Editorial' default='true']
- <!-- Editorial -->
- <table cellspacing="0" cellpadding="0" width="640" align="center">
- <!-- Headline -->
- [BLOCK name='content' label='Inhalt' independent='true']
- <tr>
- <td>[INPUT name='headline'
- label='Headline 1'
- type='h1'
- default='Headline 1'
- rows='2'
- required='true' /]</td>
- </tr>[/BLOCK]
- <!-- Text -->
- [BLOCK name='content' label='Inhalt' independent='true']
- <tr>
- <td>[INPUT name='text'
- label='Text'
- type='span'
- default='Das ist der Artikeltext'
- required='true' /]</td>
- </tr>[/BLOCK]
- <!-- Button -->
- [BLOCK name='content' label='Inhalt' independent='true']
- <tr>
- <td>[INPUT type='a'
- name='button'
- label='Button'
- attributes='class="btn"'
- default_href='#'
- default_text='Weiterlesen'
- required='true' /]</td>
- </tr>[/BLOCK]
- </table>
- [/ELEMENT]
Editor-View
Click on “Editorial” to open the window for editing the element.
Output Source Code
Generated output of the editorial element with the default values:
- <!-- Editorial -->
- <table cellspacing="0" cellpadding="0" width="640" align="center">
- <!-- Headline -->
- <tr>
- <td><h1>Headline 1</h1></td>
- </tr>
- <!-- Text -->
- <tr>
- <td><span>Das ist der Artikeltext</span></td>
- </tr>
- <!-- Button -->
- <tr>
- <td><a class="btn" href="#" content="4176528">Weiterlesen</a></td>
- </tr>
- </table>
Modular Editorial
For a modular editorial, a [CONTAINER] is defined within the Editorial element. The article components Headline, Text, and Button are added as elements within it.
Template Source Code
Example: Modular editorial
- [ELEMENT name='editorial' label='Editorial' default='true']
- <!-- Editorial -->
- <table cellspacing="0" cellpadding="0" width="640" align="center">
- <tr>
- <td>
- [CONTAINER name='editorial' label='Editorial']
- [ELEMENT name='headline' label='Headline' default='true']
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td>[INPUT name='text' label='Text' type='h1' rows='2' default='Headline' /]</td>
- </tr>
- </table>[/ELEMENT]
- [ELEMENT name='text' label='Text' default='true']
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td>[INPUT name='text'
- label='Text'
- type='span'
- default='Das ist der Artikeltext' /]</td>
- </tr>
- </table>[/ELEMENT]
- [ELEMENT name='button' label='Button' default='true']
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td>
- [INPUT type='a'
- name='button'
- label='Button'
- attributes='class="btn"'
- default_href='#'
- default_text='Weiterlesen' /]
- </td>
- </tr>
- </table>[/ELEMENT]
- [/CONTAINER]
- </td>
- </tr>
- </table>
- [/ELEMENT]
Output Source Code
Generated output of the editorial element with the default values:
- <!-- Editorial -->
- <table cellspacing="0" cellpadding="0" width="640" align="center">
- <tr>
- <td>
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td><h1>Headline 1</h1></td>
- </tr>
- </table>
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td><span>Das ist der Artikeltext</span></td>
- </tr>
- </table>
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td>
- <a class="btn" href="#" content="4176628">Weiterlesen</a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
Example: Teaser Article in the Main Section