Common Libraries
Salsa produces a variety of libraries to simplify and standardize complex tasks. To understand these libraries, it it useful to know how Salsa organizes Packages.
Package Layout
Packages are directories containing code and supporting files for a common set of features. All Salsa packages are contained in the /packages/ directory.
Salsa Common Libraries
- /salsa/common/hq
This directory contains packages that are useful for all Headquarters tasks, and span all objects. It does not contain code that is relevant to any specific object.
- /salsa/common/hq/search - Code to use an inline Javascript popup to search for a particular item. For example, to search for a supporter, you can use the include:
<?@include "/salsa/common/hq/search/searchInput.sjs?object=supporter&inputName=supporter_KEY&defaultKey=1"?>
would produce an input box in the HQ. - /salsa/common/hq/tag - common libraries for including a tagging widget on a page
- /salsa/common/hq/workflow - common libraries for producing a workflow with a consistent look and feel. A workflow is a multi-step editing process, rendered using tabs.
- /salsa/common/hq/list - common libraries for a standard listing of items, with optional filtering, Ajax editing, and links to edit and delete items
- /salsa/common/hq/search - Code to use an inline Javascript popup to search for a particular item. For example, to search for a supporter, you can use the include: