Toggle menu

Carousel Panels

A carousel panel displays its article heading and summary in the same way as standard article panels. It then displays a carousel of related articles.

You can create a carousel panel using either the Default template or List template - in both cases the related articles appear as slides in the carousel. However, if you use the List template, the first four articles that are configured to appear in the list via the list article extras (eg a related feature group) will be output as links above the carousel.

Carousel slides display their heading, first related image and their summary. A "See more" button appears on each carousel slide, taking the user to that article.

The carousel controls include left and right navigation to scroll through the slides, and if enabled, an auto-play button. Beneath the carousel is a numbered list of slides, which let you jump to a particular item.

The background of a carousel panel will either be a background image related to the carousel article, or a default colour supplied by the theme.

Carousel slides can be articles that use the List template, creating a list of articles in a single carousel slide.

Creating Carousel Panels

To create a carousel panel:

  1. Relate the "carousel" metadata value to an article using the Default or List template
  2. Relate one or more articles to it, which will become the slides in the carousel. These slides can use the Default or List template, and can have images and background images related to them
  3. Relate the article from step 1 to an article that uses the Panel template

Additional Carousel Configuration

Metadata related to the article that provides content for the carousel is used to control the carousel behaviour. The options are:

Carousel Metadata

PropertyValuesDescription
Allow playtrue, falseShows or hides the play button in the carousel controls
Play interval2000, 5000, 10000, 15000, 20000, 30000The interval (milliseconds) between slides when playing
Animate fadetrue, falseIf true slides will fade in. Really only noticeable if animate slide is false
Animate slidetrue, falseIf true the carousel transition will slide to the left. If false, one slide will simply be replaced with another
Is loopingtrue, falseWhether or not the slides loop
Slides to display1, 2, 3, 4, 5, 6The number of slides to display at once in the panel
Slides to move1, 2, 3, 4, 5, 6The number of slides to scroll through in each transition
Slides match heighttrue, falseSet as true so the panel matches the height of the tallest slide. If false the panel height will change to fit the content of each slide
Is swipertrue, falseIf true the slides can be swiped left or right on a touch screen device or by clicking and dragging using a mouse
Layout ordercontrols-links-slides
controls-slides-links
links-controls-slides
links-slides-controls
slides-controls-links
slides-links-controls
Set the order of the elements of the carousel. The default is for the controls (the arrows and play button) to appear at the top, then the slides, then the links to appear at the bottom

Examples

These examples show a default article and a list article related to the Panel template (ie the article you are looking at right now uses the Panel template). Each of the related articles have the Panel type=carousel metadata related to them.

The first article uses the Default template.

The second uses the List template.

In each carousel, the articles related to the default/list article make up the carousel items. The first three slides in the carousel use the Default template, the fourth uses the List template.