A module can define "administrator-settable" properties which can be set on a running server at (Admin) > Folder Management > Module Properties tab.

These "administrator-settable" properties are defined in your module at /resources/module.xml. When deployed, this file is copied to MODULE_ROOT/module.xml. (This module.xml file is not be confused with the identically-named file generated from the module.properties file, described here and deployed to MODULE_ROOT/config/module.xml.)

  • Supports various input types:
    • Text field (Width can be specified.)
    • Checkboxes
    • Dropdowns (Either select from a set list, or a combination that allows either user input or a selection.)
      • Options can either be a static list set at startup, or dynamic at module properties page load.
      • The dynamic list can be container dependent.
      • Other than dynamic dropdowns, all functionality is available to file based modules.
  • Settings can be applied site-wide or scoped to the current project or folder.
  • Supports permissions to have different values for a given property in different folders.
  • Supports hover tooltips: the description can be set to display on the tab and in a hover-over tooltip.
  • Defines module-level dependencies on libraries and other resources.
  • Reference link | Example link

Example module.xml

<module xmlns="http://labkey.org/moduleProperties/xml/">
<propertyDescriptor name="TestProp1">
<propertyDescriptor name="TestProp2">
<propertyDescriptor name="TestCheckbox">
<propertyDescriptor name="TestSelect">
<option display="display1" value="value1"/>
<option display="display2" value="value2"/>
<propertyDescriptor name="TestCombo">
<option display="comboDisplay1" value="comboValue1"/>
<option display="comboDisplay2" value="comboValue2"/>
<dependency path="/simpletest/testfile.js" />
<requiredModule name="Core" />

Controlling Settings

A folder or project administrator can see and set module properties by opening the (Admin) > Folder > Management > Module Properties tab. This page shows all properties you can view or set.

If the property can have a separate value per folder, there will be a field for the current folder and each parent folder up to the site-level. If you do not have permission to edit the property in the other containers, the value will be shown as read-only. To see more detail about each property, hover over the question mark in the property name bar.

Related Topics


Was this content helpful?

Log in or register an account to provide feedback

expand all collapse all