-
Story
-
Resolution: Fixed
-
Major
-
0.7
-
None
-
None
-
-
Empty show more show less
-
Yes
-
Basel 31
-
3
A component to add an Image with optional credit and caption.
The Image component should work the same as the image in the textImage component.
The dialog should be roughly equivalent to the image tab of the textImage dialog:
name | label | description |
---|---|---|
image | Image | Select or upload an image to display. |
imageAltText | Image alt text | Alternative text explaining the contents of the image. Used in screen readers and when image cannot be displayed. If left blank, the title of the image asset will be used. |
imageTitle | Image title | Image title is displayed on mouse hover. If left blank, Image alt text will be used. |
imageCaption | Caption | A caption to display with the image. If left blank, the caption of the image asset will be used if it exists, otherwise no caption will be displayed. |
imageCredit | Credit | A credit to display with the image, such as a copyright notice or a source. If left blank, the copyright of the image asset will be used if it exists, otherwise no credit will be displayed. |
TemplateScript:
The image and textImage components should use the same image macro.
The template script must behave as described in the above descriptions.
Like with the textImage, if there are no copyright or credit - then just an img tag should be created. If a copyright or credit exists, they should be included in span tags - and the img and span tags should be within an additional div tag.
Parameters:
Template definition parameters exist to allow developer to configure extra css classes to be used in the template script.
imageWrapperClass
imageClass