Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module allows administrators to specify a set of key/value pairs for use in node bodies that get filtered whenever the node is loaded.

git clone --branch 7.x-1.x dwieeb@git.drupal.org:sandbox/dwieeb/1294972.git datadictionary

Introduction

The Data Dictionary module is a way to keep your frequently changing data up-to-date on all your nodes without actually having to edit each individual node. Just insert a Data Dictionary variable key into your node, update it in the Data Dictionary configuration page whenever you want, and Data Dictionary will take care of the rest.

Details

This module is geared toward larger sites that have lots of little data around the site that gets changed often. With this module, you can put a "key" into node bodies such as "~name_of_president~” and when the node is loaded, the key is replaced by the value, which would be "Barack Obama". When President Obama is no longer president, you would simply replace his name with the next president’s name in one place (the Data Dictionary configuration page), and it would get changed throughout the site.

Installation

  • Install and enable the module as you would any other module.
  • Enable the Data Dictionary in the text formats of your choice by going to Configuration » Content authoring » Text formats.
  • If you use one of the supported wysiwyg editors, enable the Data Dictionary plugin in your editor's configuration.
  • For more detailed installation and configuration instructions, go to Help » Data Dictionary once the module is enabled.

Configuration

Managing your Variables

  • Go to Configuration » Content authoring » Data Dictionary to configure your Data Dictionary. On this page, you can add, remove, or update your variables.

Filter Settings

  • Go to Configuration » Content authoring » Text formats, click configure next to the text format of your choice. Scroll down to the Enabled filters, and make sure the Data Dictionary filter is enabled. Then, scroll down to Filter settings, and configure the Data Dictionary filter settings.

Supported editors

To-do

  • Allow variable values to be textareas, not just textfields, and have the user choose one or the other when making a new variable.

Project information