Skip to content

misd-service-development/drupal-feature-carousel

Repository files navigation

Drupal 7 University of Cambridge carousel feature

The feature adds a node view mode for carousel items.

For each content type you will need to set the display settings for Carousel as follows:

Carousel display configuration

If you are using a field_link provided by the Link feature you also need to make your link field available (it doesn't matter what format setting you use). The carousel item will then link to your custom URL rather than to the node.

If your content type is of type 'homepage_carousel' then the carousel item will not link to the node (But may link to a custom URL using the {Link Feature] as above.

If your node has a field 'field_hide_title' and this field is set to true, then the title caption will not be output.

Creating carousels

To create a carousel produced by a view, have a block with the following format options:

Format options

Then change the format settings to:

Format settings

Finally, set CSS class in the Advanced section to:

CSS class

The view block then needs to be set to appear in the 'Carousel' region.