===== Carousel Block ===== A carousel [[brandportal-blocks|block]] shows its text and the images of the first items found by a search, one at a time or several side by side. The images show no title. After the last image the first one follows again. {{:awp:brandportal-block-carousel-single.png?nolink|}} {{:awp:brandportal-block-carousel-strip.png?nolink|}} ==== Settings ==== ^ Setting ^ Description ^ |Search query|Query selecting the items, see [[brandportal-blocks#blocks_with_records|Blocks with Records]].| |Number of records|Number of items shown. Default 12, at most 48.| |Open item details on click|Clicking an image, or pressing Enter on it, opens the item in the [[brandportal-blocks#item_dialog|item dialog]]. Default: unchecked.| |Display|//One image at a time// (default) shows each image over the width of the block. //Several images side by side// shows as many images as fit into the width of the block, the last one cut off at the edge.| |Aspect ratio|Width:height, for example ''4:3''. \\ With one image at a time, the shape of every image, which is cropped at the centre to fill it. Default 16:9. \\ With several images side by side, the shape of the whole strip, whose height all images share; each image is shown whole in its own shape. Default 3:1.| |Advance automatically|Moves on to the next image by itself. Default: unchecked.| |Show navigation buttons|Can only be changed with //Advance automatically//. Unchecked, the arrows and dots below the carousel are hidden, and only the pause button stays, in the bottom left corner of the leftmost image. Default: checked.| |Seconds per image|How long each image is shown with //Advance automatically//, from 2 to 60 seconds. Default 5.| ==== On the Page ==== * The carousel is moved by swiping or with the arrows below it. With one image at a time, the dots below it jump to an image. * Without navigation buttons it can still be moved by swiping or, once reached with the keyboard, with the arrow keys. * A carousel that advances automatically stops while the mouse is over it, when it is reached with the keyboard and with the pause button. It starts paused on devices set to reduce motion.