RD
- The renderable definition.public class TeaserInternalModel<RD extends info.magnolia.rendering.template.RenderableDefinition> extends AbstractTeaserModel
RepositoryConstants.WEBSITE
.Modifier and Type | Field and Description |
---|---|
protected static String |
PROPERTY_NAME_PAGE_ABSTRACT |
protected static String |
PROPERTY_NAME_PAGE_TITLE |
PROPERTY_NAME_HIDE_TEASER_IMAGE, PROPERTY_NAME_HIGHLIGHTED, PROPERTY_NAME_LINK, PROPERTY_NAME_TEASER_ABSTRACT, PROPERTY_NAME_TEASER_TITLE, templatingFunctions
damTemplatingFunctions, PROPERTY_NAME_IMAGE, PROPERTY_NAME_IMAGE_VARIATION
Constructor and Description |
---|
TeaserInternalModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
info.magnolia.templating.functions.TemplatingFunctions templatingFunctions,
info.magnolia.dam.templating.functions.DamTemplatingFunctions damTemplatingFunctions) |
Modifier and Type | Method and Description |
---|---|
protected info.magnolia.dam.api.Asset |
findImage(javax.jcr.Node target)
Returns the image defined in the target intro/header.
|
info.magnolia.dam.api.AssetRendition |
getImage()
Returns the rendition of image defined in the target intro/header.
|
protected static String |
getRepository()
Returns the repository name of the target
Node . |
protected javax.jcr.Node |
getTarget()
Return the
Node referenced by the content. |
String |
getTeaserLink()
Returns a link to the target page.
|
String |
getTeaserText()
Returns the teaser text and if not specified will try to determine an
abstract of the target page. |
String |
getTeaserTitle()
Returns the title of the teaser.
|
boolean |
isTargetBlank()
Internal links should always open in same window.
|
isHideTeaserImage, isHighlighted
getImage, getImageName, getImageVariationName
protected static final String PROPERTY_NAME_PAGE_TITLE
protected static final String PROPERTY_NAME_PAGE_ABSTRACT
@Inject public TeaserInternalModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions, info.magnolia.dam.templating.functions.DamTemplatingFunctions damTemplatingFunctions)
protected javax.jcr.Node getTarget()
Node
referenced by the content.public info.magnolia.dam.api.AssetRendition getImage()
getImage
in class ImageModel
RenderableDefinition.getParameters()
protected info.magnolia.dam.api.Asset findImage(javax.jcr.Node target)
public String getTeaserLink()
getTeaserLink
in class AbstractTeaserModel
TemplatingFunctions.link(String, String)
public String getTeaserTitle()
getTeaserTitle
in class AbstractTeaserModel
public String getTeaserText()
abstract
of the target page.getTeaserText
in class AbstractTeaserModel
public boolean isTargetBlank()
isTargetBlank
in class AbstractTeaserModel
protected static String getRepository()
Node
.Copyright © 2015 Magnolia International Ltd.. All rights reserved.