Article module registry

From Gestaltipedia

Jump to: navigation, search

Each Gestalt site maintains a number of sitewide application variables that store settings and cache regularly-used information. One of these variables is the Module Registry.

This variable contains an index of all modules in the ~/gestalt/article section of the site. This list is built when a G2 site is first accessed by scanning the contents of this directory and reading in the module polling block at the front of the file. This block contains a description of the component, what context it is called in, what package it is a part of, and a descriptive name that looks nice in a menu. This polling process also keeps track of what sub-directory the file is located in, so that when it is called with module.cfm, it can be properly requested.

You can reset the article module registry and load newly-added modules by adding resetregistry=1 to the end of any URL in the site. Example:

<source lang="dos">http://core.gestalt-inc.com/gestalt/go.cfm?objectid=ABC123&resetregistry=1</source>

Personal tools