Provides an entity for fragment content, that is, content that is used within blocks and views but doesn't require a path to be viewed on.

Fragment 2.x

Fragment 2.x provides fragment types, and a title property. Further fields may be added with FieldAPI.

There is no upgrade path from 1.x to 2.x yet.

Fragment 1.x

The 1.x branch of fragment has a link path in addition to the usual title property. This is used to format all its title and all its fields as links.

This is intended as an alternative to the workflow of promoting content to be displayed in 'featured item' blocks, with the advantage that you can promote anything:

  • Mix different entity types in one list of featured items
  • Link to paths rather than entities: eg search results, views (including exposed filter query strings), panels, etc

Example

Make a carousel of featured articles, products, and categories:

  1. Add an image field to the fragment entity
  2. Create a fragment for each item you want to feature, linking to its path
  3. Create a view of fragments that provides a carousel as a block

Project information

Releases