This module exposes the Vocabulary to the field system. It defines a single bundle and a single view mode.

The data is loaded when you load a vocabulary, but it is up to you with what you do with it!

Use cases

1. Vocabulary specific fields / data

We needed to store some custom page titles for the vocabulary for a number of different pages and we could not automatically do this from the vocab name and we didn't want to hard code these strings into a template or module. So we store these page titles in fields, and in the template preprocess we load the vocabulary and manually set the page titles off the field value.

2. Vocabulary reference field

You can use the Entity Reference module to construct a vocabulary reference field.

Internal details

The module only directly invokes field_attach_form() and implements a sub-set of the entity callbacks (presave, insert, update and delete). All core field types have successfully been tested but lodge an issue if you have any issues.

Dependencies

Taxonomy
Entity API

Supporting organizations: 

Project information

Releases