diff options
author | Raghuram <raghuram.vadapalli@research.iiit.ac.in> | 2017-06-18 16:43:52 +0300 |
---|---|---|
committer | Raghuram <raghuram.4350@gmail.com> | 2017-07-23 10:51:48 +0300 |
commit | 44028973ee5650946594ca521a188b9175676ff4 (patch) | |
tree | 839b08a15b7387c302f5a1f797f6708895f0e6b8 /doc | |
parent | 8270a1c1e16bf614a5a37d7d79a9afbce649a2ec (diff) |
Fixes #5666 - Default options for transformations
Signed-off-by: Raghuram <raghuram.vadapalli@research.iiit.ac.in>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/config.rst | 52 | ||||
-rw-r--r-- | doc/transformations.rst | 3 |
2 files changed, 54 insertions, 1 deletions
diff --git a/doc/config.rst b/doc/config.rst index 02ed25c2a7..69ac7ced67 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -3234,6 +3234,58 @@ MySQL settings FUNC\_SPATIAL, FUNC\_UUID) and for ``first_timestamp``, which is used for first timestamp column in table. +Default options for Transformations +----------------------------------- + +.. config:option:: $cfg['DefaultTransformations'] + + :type: array + :default: An array with below listed key-values + +.. config:option:: $cfg['DefaultTransformations']['Substring'] + + :type: array + :default: array(0, 'all', '…') + +.. config:option:: $cfg['DefaultTransformations']['Bool2Text'] + + :type: array + :default: array('T', 'F') + +.. config:option:: $cfg['DefaultTransformations']['External'] + + :type: array + :default: array(0, '-f /dev/null -i -wrap -q', 1, 1) + +.. config:option:: $cfg['DefaultTransformations']['PreApPend'] + + :type: array + :default: array('', '') + +.. config:option:: $cfg['DefaultTransformations']['Hex'] + + :type: array + :default: array('2') + +.. config:option:: $cfg['DefaultTransformations']['DateFormat'] + + :type: array + :default: array(0, '', 'local') + +.. config:option:: $cfg['DefaultTransformations']['Inline'] + + :type: array + :default: array('100', 100) + +.. config:option:: $cfg['DefaultTransformations']['TextImageLink'] + + :type: array + :default: array('', 100, 50) + +.. config:option:: $cfg['DefaultTransformations']['TextLink'] + + :type: array + :default: array('', '', '') Developer --------- diff --git a/doc/transformations.rst b/doc/transformations.rst index f04f80c455..02f43c5454 100644 --- a/doc/transformations.rst +++ b/doc/transformations.rst @@ -79,7 +79,8 @@ They are called 'MIME-type', 'Browser transformation' and which you can specify 2 options and you want to append a character set, enter "'first parameter','second parameter','charset=us-ascii'". You can, however use the defaults for the parameters: "'','','charset - =us-ascii'". + =us-ascii'". The default options can be configured using + :config:option:`$cfg['DefaultTransformations']` .. _transformationsfiles: |