Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-343

Add support for basic 'environment replacement' in module config.ini files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • balance
    • None
    • n/a

    Description

      One of the principles of OODT Balance is that it should be possible to drop in modules with minimal configuration. One thing that currently frustrates this is occasional the need, in a module's configuration file, to know the actual install path or url of the module. Introducing a limited set of basic "environment variables," which would be evaluated just prior to parsing the module config file, would remove the need to know, a-priori, where the module has been installed.

      For starters, the following "environment variables" should be available:

      [MODULE_PATH] should expand/evaluate to the file system path of the module
      [MODULE_ROOT] should expand/evaluate to the url base of the module
      [MODULE_STATIC] should expand/evaluate to the url base of the module's static assets directory (css, js, img, etc)

      These "environment variables" can then be used in module configuration files wherever absolute paths/urls would otherwise have been needed.

      Attachments

        Activity

          People

            ahart Andrew Hart
            ahart Andrew Hart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: