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
asset ↦ AssetModel
since 5.2.0
get asset teaser is defined in
image ↦ ImageModel
since 5.2.0
get teaser's image
linkLabel ↦ NodeModel
since 5.4.0
get link label from teaser
slideshow ↦ SlideShowModel
since 5.4.0
get teaser's slideshow
strapline ↦ NodeModel
since 5.2.0
get teaser's strapline
text ↦ NodeModel
since 5.2.0
get text from teaser
title ↦ NodeModel
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