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 directory

  • id is an option id attached to the <img> tag, and can be used for styling

  • alt is given the the alt attribute of the <img> tag

  • class is included in the class list of the outer div 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.

Collection-Plugin-Development v0.3.0

Development and working repository for Collection plugins

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.