close

Filter

loading table of contents...

Blueprint Developer Manual / Version 2101

Table Of Contents

5.4.9 Teaser Management

Requirements

Most websites present short content snippets as "teasers" on various pages. Content and layout for teasers should be flexible but manageable with minimum effort.

Default view and teaser view of an Article

Figure 5.15. Default view and teaser view of an Article


It is a common requirement to automatically derive abbreviated content teasers without the need to duplicate any content items. In some cases, editors wish to create distinct teasers for a content item that don't reuse any information from that item.

Example: An editor wants to point to an article using a specific image that is not part of that article. Or: An editor wants to promote an article on a page with a teaser that is not the default teaser (using different text, image, or layout).

Solution

In CoreMedia Blueprint all content types for content and pages extend from the abstract content type CMTeasable. It defines common properties and business rules which provide all types inheriting from CMTeasable with a default behavior when displayed as a teaser.

TypePurpose
teaserTitle The title of the content item when displayed as a teaser.
teaserText The text of the content item when displayed as a teaser.

Table 5.12. Properties of CMTeasable


Fallbacks to automatically display the shorter teaser variant of properties are implemented in the content bean implementation for CMTeasable. For example, the teaserText of a content reverts to the detailText if no teaserText has been entered by an author.

For distinct teasers CoreMedia Blueprint includes a CMTeaser content type that can be used for this purpose. It provides all properties required to display a teaser and can be linked to the content that it promotes. Teasers without a link are also supported to create non-interactive brand promotions etc.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.