Skip to main content
Skip table of contents

TeaserModel

Model for teaser elements of an article.

implements: hash
bundle: standard information structure (sismodel)
since 5.2.0
Model for teaser elements of an article.

Defined hash keys

assetAssetModel
since 5.2.0
get asset teaser is defined in

imageImageModel
since 5.2.0
get teaser's image

linkLabelNodeModel
since 5.4.0
get link label from teaser

slideshowSlideShowModel
since 5.4.0
get teaser's slideshow

straplineNodeModel
since 5.2.0
get teaser's strapline

textNodeModel
since 5.2.0
get text from teaser

titleNodeModel
since 5.2.0
get title from teaser

Permission Verbs used

teaser.asset
since 5.2.0 'teaser.asset' - guards requests to '→asset'

teaser.image
since 5.2.0 'teaser.image' - guards requests to '→image'

teaser.linkLabel
since 5.4.0 'teaser.linkLabel' - guards requests to '→linkLabel'

teaser.slideshow
since 5.4.0 'teaser.slideshow' - guards requests to '→slideshow'

teaser.strapline
since 5.2.0 'teaser.strapline' - guards requests to '→strapline'

teaser.text
since 5.2.0 'teaser.text' - guards requests to '→text'

teaser.textShortened
since 5.2.0 'teaser.textShortened' - guards requests to '→textShortened'

teaser.title
since 5.2.0 'teaser.title' - guards requests to '→title'

Methods

textShortened(Integer:length, String:suffix, Boolean:keepWords)NodeModel
since 5.2.0
shorten teaser's text to max 'length' characters, add 'suffix' if shortened and if 'keepWords' is true: cut after wordbreaks only

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.