Loading...
 
Skip to main content

History: Plugin Alias Handler

Preview of version: 6 (current)

This is a handler to use a plugin alias, created from profiles.

Sample

YAML
Copy to clipboard
objects: - type: tracker ref: tracker data: name: Hello World - type: tracker_field ref: only data: name: Only Field tracker: $tracker type: text_field flags: [ searchable, public, list, mandatory, link] - type: plugin_alias ref: my_alias data: name: mytracker implementation: trackerlist description: name: My Tracker Plugin description: Does nothing meaningful, just testing profiles prefs: [ feature_trackers ] params: foo: name: Foo description: Bar required: true body: input: use default: Hello World params: trackerId: $tracker fields: $only


Plugin Alias Object

The plugin alias object is mapped directly to the internal structures. Because there are multiple nested structures, multiple tables are used to describe it.

Field NameMandatoryValue
nameyThe name of the plugin, must contain letters only.
implementationyThe name of the underlying plugin.
descriptionyEquivalent of a plugin info function return value. Used to generate the documentation.
body Complex structure, described below
params Complex structure, described below


Body

This section describes what to do with the body of the plugin. The body may be passed through to the implementation or a custom body can be sent instead. Parameters may be contained in the body, like %name% ".

Field NameMandatoryValue
inputyuse or ignore, what to do with the user input
defaultyValue to send if user input is empty.
params List of replacement parameters, described below


Plugin parameters

Plugin parameters are identified by a key (the parameter that will be provided to the implementation plugin). The parameters can be provided in two forms:

name: default value

or

name: complex structure, where structure is described below

Field NameMandatoryValue
patternyString to provide to the plugin with possible parameters
paramsyList of replacement parameters, described below


Replacement parameters

Each replacement parameter is identified by a key (used to replace with) and the containing values are as follow:

Field NameMandatoryValue
input Name of the parameter to read from, if different from the token name
default Default value to replace with if parameter not provided
encoding none, html or url , the encoding type to use when replacing the value


History

Information Version
Wed 04 of Feb, 2009 01:52 GMT-0000 Marc Laporte 6
Tue 03 of Feb, 2009 18:55 GMT-0000 Marc Laporte %name% is used in wiki syntax 5
Tue 03 of Feb, 2009 17:09 GMT-0000 Marc Laporte 4
Sat 20 of Dec, 2008 22:46 GMT-0000 Marc Laporte 3
Wed 17 of Sep, 2008 19:39 GMT-0000 System Administrator 2
Wed 17 of Sep, 2008 19:38 GMT-0000 System Administrator 1