Skip to content

JeebsUK/drupal-feature-teasers

 
 

Repository files navigation

Drupal 7 University of Cambridge teasers feature

This feature adds node view modes for horizontal, vertical and sidebar teasers. (The horizontal teaser actually replaces Drupal's default teaser.)

To have an image appear in the teaser use the field_image base image field provided by the Images Styles feature.

For each content type you will need to set the display settings as follows.

For both horizontal and vertical teasers:

Horizontal/vertical teaser display configuration

For sidebar teasers:

Horizontal/vertical teaser 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 teaser will then link to your custom URL rather than to the node.

Creating a list of horizontal teasers

To create a list of sidebar teasers produced by a view, have a block with the following format options:

Horizontal teaser format options

The view block then needs to be set to appear on the appropriate page(s) in the 'Content' region.

Creating a list of vertical teasers

To create a list of vertical teasers produced by a view, have a block with the following format options:

Vertical teaser format options

Then change the format settings to:

Vertical teaser format settings

This will create 2 columns. For 3 columns, for example, set the row class to campl-column4.

Finally, set CSS class in the Advanced section to:

Vertical teaser CSS class

The view block then needs to be set to appear on the appropriate page(s) in the 'Content' region.

Creating a list of sidebar teasers

To create a list of sidebar teasers produced by a view, have a block with the following format options:

Sidebar teaser format options

The view block then needs to be set to appear on the appropriate page(s) in the 'Sidebar' region.

About

University of Cambridge teasers feature for Drupal 7

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%