Image plugin for Collection
This is a render milestone plugin that moves images in the assets directory (as given in the Collection level configuration)
to the assets/images/
directory. More detail can be found in the Collection README regarding assets.
A report milestone plugin is also provided which looks at all registered plugins to see whether there is an images
key in the plugin configuration. If so, the images listed in the key are marked as used, so that the assets manager
will move them.
Blocks
The block name is Image
, though <image> is also possible.
image izef_collection_plugin_development_dist_lib_plugins_html_images_path_to_image_in_collection_assets_directory not found
src
must be an image inside the Collection's asset directoryid
is an option id attached to the <img> tag, and can be used for stylingalt
is given the the alt attribute of the <img> tagclass
is included in the class list of the outerdiv
container
head1 Template
The default template renders the image as
<div class="image-container other classes"><img src="path-to-source" alt="alt text" id="id"></img>
Styling
The plugin provides three classes by default: justify-right
, justify-center
and justify-left
, moving the image accordingly.