wf-core:image
This tag will create an img element with appropriate image representation.
Syntax
<wf-core:image alt="..."? article="..."? articleId="..."? articleTypeName="..."? aspectVariant="..."? imagePolicy="..."? onClick="..."? preload="..."? scale="..."? styleClass="..."? title="..."? width="..."?/>
Attributes
articleId
An article id identifying the image content item to be displayed. The id can be supplied as an
int
,Integer
orString
.article
A
neo.xredsys.presentation.PresentationArticle
: the content item representing the image to be displayed.width
The width value to be used if
imagePolicy
is set togrid
. If you specify bothwidth
andscale
, thenscale
takes priority.alt
If specified,sets the
alt
attribute of the generatedimg
element. By default thealt
attribute is taken from the source content item.title
If specified,sets the
title
attribute of the generatedimg
element. By default thetitle
attribute is taken from the source content item.scale
The image width specified as a percentage of the available space (that is, the width of the image's enclosing element).
articleTypeName
Deprecated. The type of the article.
styleClass
The name of a CSS style (HTML
class
attribute) to be assigned to the generated HTMLimg
tag.onClick
Deprecated. The onclick handler of the image.
imagePolicy
Specify
adaptive
orpicturefill
to enable responsive image selection orgrid
to disable it. If this attribute is not specified, the value is taken fromimage.policy
content profile section parameter.aspectVariant
Specifies the required image aspect. The allowed options are
PORTRAIT
,LANDSCAPE
,SQUARE
orFREE
. If no value is specified, then a default ofLANDSCAPE
is used. (This default can be changed by setting thedefaultAspectVariant
property incom/escenic/framework/cache/ImageRepresentationCacheManager.properties
.preload
Specify
placeholder
orproxy
, if you wants the image tag to load some placeholder or proxy images initially. Otherwise setnone
to disable preloading. If this attribute is not specified, the value is taken fromimage.preload
content profile section parameter.