X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fdocs%2Fextending%2Fexternal_custom_fields.pod;h=5e70d3e408bce2447a81ce253abe58ca2c608b68;hp=c6730ae4e0607e84059adca613dddf990a4862de;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=85e677b86fc37c54e6de2b06340351a28f5a5916 diff --git a/rt/docs/extending/external_custom_fields.pod b/rt/docs/extending/external_custom_fields.pod index c6730ae4e..5e70d3e40 100644 --- a/rt/docs/extending/external_custom_fields.pod +++ b/rt/docs/extending/external_custom_fields.pod @@ -13,7 +13,7 @@ For each type of data source that you want, you'll need to put a file in F (or equivalent if you installed RT into someplace other than F). To get a sense of the code that you'll need to write, take a look at the code in -L for a simple example +F for a simple example which just uses RT's API to pull in a list of RT's groups. Running C will @@ -57,6 +57,10 @@ web interface. See L. This method should return an array reference of hash references. The hash references should contain keys for C, C, and C. C is most important one; the others are optional. +You can also optionally provide a key for C and use the +"Categories are based on" option on the custom field configuration +page to make the values displayed for this custom field vary based +on the value selected in the "based on" custom field. =back @@ -77,9 +81,9 @@ Here's a simple static example: # return reference to array ([]) return [ # each element of the array is a reference to hash that describe a value - # possible keys are name, description and sortorder - { name => 'value1', description => 'external value', sortorder => 1 }, - { name => 'value2', description => 'another external value', sortorder => 2 }, + # possible keys are name, description, sortorder, and category + { name => 'value1', description => 'external value', sortorder => 1, category => 'Other CF' }, + { name => 'value2', description => 'another external value', sortorder => 2, category => 'Other CF' }, # values without description are also valid, the default description is empty string { name => 'value3', sortorder => 3 }, # you can skip sortorder too, but note that the default sortorder is 0 (zero)