Prints the product category image and, if necessary, wraps the campaign link around the image.
Kuvaus
If you use image size attributes such as width
, height
or imagesize
, the image will appear in the size specified by the attributes.
To print only the URL address of the product category image, use the {CategoryImageUrl}
tag.
Syntaksi
{CategoryImage(
link: boolean,
id: string,
class: string,
imagesize: int,
height: int,
width: int
)}
Näkyvyys
Toimii näkyvyydessä: tuoteryhmä
The required scope is always set in the following templates:
Templates |
---|
Product list |
Display window |
Front page |
Attribuutit
link:
If the value is set to
true
, the attribute prints the campaign link for the product category image around that image.Allowed values:true/false. The default value is true.
id:
Defines the
id
attribute for the<img>
element to be printed.Allowed values:string
class:
Defines the
class
attribute for the<img>
element to be printed.Allowed values:string
imagesize:
Defines printed image's dimensions.
The used values are determined by the values of the
ImageSizes
element of the theme settings.Allowed values: names of image sizes defined in the theme.xml file's
ImageSizes
element.E.g.
imagesize:
'Large'height:
Defines image height given in pixels.
Allowed values:integers
width:
Defines image width given in pixels.
Allowed values:integers
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:The HTML and Interface markup
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.escape:
Adds an escape character before quotation marks in the output.
The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values:true/false. The default value is false.
or:
Defines alternative content that is displayed if the tag itself does not produce any content.
Allowed values:The HTML and Interface markup
E.g.
or:
'Sisältöä ei löytynyt.'