Domain Custom Variable

Categories

Component ID

2396993

Component name

Domain Custom Variable

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

The Domain Custom Variable module provides a content administrator with a form to assign domain specific string values to custom variables.

Our use case for the module is a Dental practice with multiple locations. All of the practices have a common website, but with unique domains and some unique content. The Domain Access module is used to run these affiliated sites from one Drupal installation and a single shared database.

In several places throughout the site, we want to use tokens to embed strings in the context of Body or other text fields.

Using this module, we can insert tokens (e.g. [variable:city]) into such content to represent these domain specific string values.

At present, the variable keys (e.g. city) are hard coded in the .module file.

Once can see more specifics at http://www.screencast.com/t/76hp4JWQ.

Goals for this module are:

  • Allow the admin to configure variable keys from the UI, not just their values. In other words, not hard code variable keys in the .module file.
  • Get feedback from the community... Is this module valuable? Is there another module that solves the same problem?

Dependencies

SNP wishes to thank Trupti Dixit for her programming contributions :>)