Child pages
  • CMS_TEASER

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<div class="column_quarter text">
    <h2>{TITLE}</h2>
    <!-- BEGIN:BLOCK -->
    <div class="col">
        <h3>{TITLE}</h3>
        <span class="date">{PUBLISHED}</span>
        <p>{TEXT}</p>
        <a href="{ART_URL}" class="more">{MORE} &raquo;</a>
    </div>
    <!-- END:BLOCK -->
    <div class="clear"></div>
</div>

...

Possible placeholder which you can use are:
{TITLE} (Outside the BLOCK statement, e.g. for "News")

{TITLE} (inside the BLOCK statement, represents the respective article-headline)

{IMAGE}

{IMAGE_SRC}

{TEXT}

{ART_URL}

...

List all methods for CMS_TEASER at our API documentation.

Function nameDescription
generateViewCode()Generates the code which should be shown if this content type is shown in the frontend.
getConfiguredArticles()Function returns idarts of selected articles as array.
generateTeaserCode()Function is called in edit- and viewmode in order to generate teasercode for output. Returns string of select box (if teaser template exists) or array of articles.
generateEditCode()Generates the code which should be shown if this content type is edited.