createParams();
$tsparams = $ts->params;
$params = array_merge(
[
'trackerId' => [
'required' => true,
'name' => tra('Tracker ID'),
'description' => tra('Numeric value representing the tracker ID'),
'since' => '1',
'filter' => 'digits',
'default' => '',
'profile_reference' => 'tracker',
],
'fields' => [
'required' => false,
'name' => tra('Fields'),
'description' => tr('Colon-separated list of field IDs for the fields to be displayed.
Example: %02:4:5%1. The field order specified here determines the column order if the %0sort%1
parameter is set to %0y%1.', '', ''),
'since' => '1',
'filter' => 'digits',
'separator' => ':',
'default' => '',
'profile_reference' => 'tracker_field',
'parent' => 'input[name="params[trackerId]"]',
'parentkey' => 'tracker_id',
],
'sort' => [
'required' => false,
'name' => tra('Sort'),
'description' => tr('Display columns in the order listed in the %0fields%1 parameter instead of by
field ID (field ID order is used by default', '', ''),
'since' => '2.0',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'popup' => [
'required' => false,
'name' => tra('Popup'),
'description' => tr('Colon-separated list of fields which will display in a tooltip on mouse over.
Example: %06:7%1. Setting this parameter implies %0y%1 value for %0sort%1 param.', '', ''),
'since' => '2.0',
'filter' => 'digits',
'separator' => ':',
'default' => '',
],
'stickypopup' => [
'required' => false,
'name' => tra('Sticky Popup'),
'description' => tra('Choose whether the popup tooltip will stay displayed on mouse out (does not stay open by default)'),
'since' => '2.0',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showtitle' => [
'required' => false,
'name' => tra('Show Title'),
'description' => tra('Display the title of the tracker (not shown by default)'),
'since' => '1',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showlinks' => [
'required' => false,
'name' => tra('Show Links'),
'description' => tra('Show links to each tracker item (not shown by default). At least one field needs
to be set as Public in order for this to work.'),
'since' => '1',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n'],
['text' => tra('Row'), 'value' => 'r']
]
],
'showdesc' => [
'required' => false,
'name' => tra('Show Description'),
'description' => tra('Show the tracker\'s description (not shown by default)'),
'since' => '1',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'shownbitems' => [
'required' => false,
'name' => tra('Show Item Count'),
'description' => tra('Show the number of items found (not shown by default)'),
'since' => '2.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showinitials' => [
'required' => false,
'name' => tra('Show Initials'),
'description' => tra('Show an alphabetical index by first letter to assist in navigation (not shown
by default)'),
'since' => '1',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showstatus' => [
'required' => false,
'name' => tra('Show Status'),
'description' => tra('Show the status of the items (not shown by default)'),
'since' => '1',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showcreated' => [
'required' => false,
'name' => tra('Show Creation Date'),
'description' => tra('Creation date display is based on tracker settings unless overridden here'),
'since' => '2.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showlastmodif' => [
'required' => false,
'name' => tra('Last Modification Date'),
'description' => tra('Last modification date display is based on tracker settings unless overridden here'),
'since' => '2.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showlastmodifby' => [
'required' => false,
'name' => tra('Last modified by'),
'description' => tra('Last modified by user display is based on tracker settings unless overridden here'),
'since' => '14.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showfieldname' => [
'required' => false,
'name' => tra('Show Field Name'),
'description' => tra('Use the field names as column titles (used by default)'),
'since' => '1',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showitemrank' => [
'required' => false,
'name' => tra('Show Item Rank'),
'description' => tra('Show item ranks (not shown by default)'),
'since' => '4.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showcomments' => [
'required' => false,
'name' => tra('Show Comments'),
'description' => tra('Show comments count or last comment date and user depending on tracker preferences'),
'since' => '16.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'status' => [
'required' => false,
'name' => tra('Status Filter'),
'description' => tra('Only show items matching certain status filters (only items with open status shown by default)'),
'since' => '1',
'doctype' => 'filter',
'filter' => 'alpha',
'default' => 'o',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Open'), 'value' => 'o'],
['text' => tra('Pending'), 'value' => 'p'],
['text' => tra('Closed'), 'value' => 'c'],
['text' => tra('Open & Pending'), 'value' => 'op'],
['text' => tra('Open & Closed'), 'value' => 'oc'],
['text' => tra('Pending & Closed'), 'value' => 'pc'],
['text' => tra('Open, Pending & Closed'), 'value' => 'opc']
]
],
'sort_mode' => [
'required' => false,
'name' => tra('Sort Mode'),
'description' => tra('Sort rows in ascending (_asc) or descending (_desc) order based on field ID,
date created or date last modified'),
'accepted' => 'created_asc, created_desc, lastModif_asc, lastModif_desc, f_fieldId_asc, f_filedId_desc '
. tr('(replacing %0fieldId%1 with the field ID number, e.g. %0f_3_asc%1)', '', ''),
'since' => '1',
'filter' => 'word',
'default' => '',
'profile_reference' => 'tracker_field_string',
],
'sortchoice' => [
'required' => false,
'name' => tra('Sort Choice'),
'description' => tr(
'Add a dropdown of sorting choices. Separate each choice with a %0:%1. For each
choice, use the format %0value|label%1. See %0sort_mode%1 for value choices. Example with two
sorting choices: %0sortchoice="created_desc|Newest first:lastModif_desc|Last modified first"%1',
'',
''
),
'since' => '5.0',
'filter' => 'text',
'separator' => ':',
'default' => '',
],
'max' => [
'required' => false,
'name' => tra('Maximum Items'),
'description' => tra('Maximum number of items to display or -1 for all items. Defaults to max records
preference, if set. Pagination will not show if all items are shown by setting to -1.'),
'since' => '1',
'doctype' => 'filter',
'filter' => 'int',
'default' => '',
],
'offset' => [
'required' => false,
'name' => tra('Offset'),
'description' => tra('Offset of first item. Default is no offset.'),
'since' => '6.0',
'doctype' => 'filter',
'filter' => 'int',
'default' => 0,
],
'forceoffset' => [
'required' => false,
'name' => tra('Fix offset always (no pagination)'),
'description' => tra('Fix offset to that specified. This will disallow pagination.'),
'since' => '8.0',
'doctype' => 'filter',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showpagination' => [
'required' => false,
'name' => tra('Show Pagination'),
'description' => tra('Determines whether pagination will be shown (shown by default)'),
'since' => '4.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'allowtableexpansion' => [
'required' => false,
'name' => tra('Show button to make entire width of tables visible'),
'description' => tra('Show a toggle button to allow wide tables to overflow to the right of the content area rather than be scrollable in a limited-width area (not by default).'),
'since' => '18.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'filterfield' => [
'required' => false,
'name' => tra('Filter Field'),
'description' => tra('Colon-separated list of fields to allow filtering on.'),
'since' => '1',
'doctype' => 'filter',
'filter' => 'digits',
'separator' => ':',
'default' => '',
'profile_reference' => 'tracker_field',
'parent' => 'input[name="params[trackerId]"]',
'parentkey' => 'tracker_id',
],
'filtervalue' => [
'required' => false,
'name' => tra('Filter Value'),
'description' => tr('Filter value (or multiple values) that correspond to %0filterfield%1. For better performance, use %0exactvalue%1
instead. %2Special search values to match:', '', '', '
') . '
'
. '*value - ' . tra('text that ends in "value"') . '
'
. 'value* - ' . tra('text that begins with "value"') . '
'
. '#user - ' . tra('the current user\'s login name') . '
'
. '#group_default - ' . tra('the current user\'s default group') . '.
'
. tr('To filter by empty/non-empty values, use parameter %0exactvalue%1 instead', '', '') . '
',
'since' => '1',
'doctype' => 'filter',
'accepted' => tra('any text'),
'filter' => 'text',
'separator' => ':',
'default' => '',
],
'exactvalue' => [
'required' => false,
'name' => tra('Exact Value'),
'description' => tr('Exact value (or multiple values) that correspond to %0filterfield%1. %2Special
search values to filter by:', '', '', '
') . '
'
. 'categories(x) - ' . tra('tracker item is in category with ID x or one its descendants') . '
'
. 'notcategories(x) - ' . tra('tracker item is not in category with ID x or one of its descendants') . '
'
. 'preference(name) - ' . tra('match against the value of a Tiki preference') . '
'
. 'notpreference(name) - ' . tra('match if value does not equal a Tiki preference value') . '
'
. 'not(value) - ' . tra('match if the field does not equal "value"') . '
'
. 'not() - ' . tr('match for non empty values (opposite with %0exactvalue%1="")', '', '') . '
'
. 'or(value1,value2) - ' . tra('match if the field equals "value1" or "value2" (can list more than 2 alternative values)') . '
'
. 'field(x, itemid) - ' . tr('match field with ID x in item with ID itemid.
%0field(x)%1 can be used if the %0itemId%1 URL parameter is set', '', '') . '
'
. 'notfield(x, itemid) - ' . tr('match if not equal to field with ID x in item with ID itemid
%0field(x)%1 can be used if the %0itemId%1 URL parameter is set', '', '') . '
'
. tr('The following comparisons can also be applied to date fields by using date phrases that PHP recognizes
(see http://us.php.net/manual/en/function.strtotime.php ):', '', '') . '
'
. 'less(value) - ' . tra('match if less than "value"') . '
'
. 'greater(value) - ' . tra('match if greater than "value"') . '
'
. 'lessequal(value) - ' . tra('match if less than or equal to "value"') . '
'
. 'greaterequal(value) - ' . tra('match if greater than or equal to "value"') . '
',
'since' => '1',
'doctype' => 'filter',
'accepted' => tra('any text'),
'filter' => 'text',
'separator' => ':',
'default' => '',
],
'checkbox' => [
'required' => false,
'name' => tra('Checkbox'),
'description' => tr('Adds a checkbox on each line to perform an action. Required elements are separated
by %0/%1. Those elements are:', '', '') . '
'
. 'FieldId - ' . tra('the value of this field will be posted to the action') . '
'
. 'PostName - ' . tra('the name of the post') . '
'
. 'Title - ' . tra('the title of the submit button') . '
'
. 'Submit - ' . tra('the name of the submit button') . '
'
. 'ActionUrl - ' . tra('the file that will be called upon submit') . '
'
. 'Tpl - ' . tra('optional template inserted before the submit button and returned') . '
'
. 'SelectType - ' . tr('Leave empty for multiple select, or use %0dropdown%1 or
%0radio%1.', '', '') . '
'
. 'Embed - ' . tra('Set to %0y%1 if the trackerlist table is embedded inside an existing form.
ActionUrl is ignored in this case.', '', '') . '
'
. 'Checked - ' . tra('comma-separated list of pre-checked items') . '
'
. tr(
'Format: %0checkbox="FieldId/PostName/Title/Submit/ActionUrl/Tpl/SelectType/Embed/Checked"%1',
'',
''
) . '
'
. tr(
'Example: %0checkbox="6/to/Email to selected/submit/messu-compose.php//dropdown//1,2,3"%1',
'',
''
) . '
',
'since' => '1',
'doctype' => 'show',
'advanced' => true,
'default' => '',
],
'goIfOne' => [
'required' => false,
'name' => tra('goIfOne'),
'description' => tra('Display the item rather than list if only one item is found'),
'since' => '1',
'doctype' => 'filter',
'filter' => 'alpha',
'advanced' => true,
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'more' => [
'required' => false,
'name' => tra('More'),
'description' => tra('Show a \'more\' button that links to the tracker item (not shown by default)'),
'since' => '2.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'moreurl' => [
'required' => false,
'name' => tra('More URL'),
'description' => tra('More link pointing to specified URL instead of default tracker item link'),
'since' => '2.0',
'doctype' => 'show',
'filter' => 'url',
'default' => 'tiki-view_tracker.php',
],
'view' => [
'required' => false,
'name' => tra('View'),
'description' => tr('Display only the items of the following:') . '
'
. 'user - ' . tra('the current user') . '
'
. 'group - ' . tra('the current user\'s groups') . '
'
. 'page - ' . tra('the current page name') . '
'
. 'ip - ' . tra('the current IP address') . '
',
'since' => '2.0',
'doctype' => 'filter',
'filter' => 'alpha',
'advanced' => true,
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Page'), 'value' => 'page'],
['text' => tra('User'), 'value' => 'user'],
['text' => tra('Group'), 'value' => 'group'],
['text' => tra('IP address'), 'value' => 'ip']
]
],
'tpl' => [
'required' => false,
'name' => tra('Template File'),
'description' => tr('Use content of the specified tpl file as template to display the item.
Use %0{$f_fieldId}%1 to display a field with ID %0fieldId%1.', '', ''),
'since' => '2.0',
'advanced' => true,
'default' => '',
],
'wiki' => [
'required' => false,
'name' => tra('Wiki Page'),
'description' => tr('Use content of the wiki page as template to display the item. The page should
have the permission %0tiki_p_use_as_template%1 set, and should only be editable by trusted users
such as other site admins', '', ''),
'since' => '2.0',
'filter' => 'pagename',
'advanced' => true,
'default' => '',
'profile_reference' => 'wiki_page',
],
'tplwiki' => [
'required' => false,
'name' => tra('Template Wiki Page'),
'description' => tr('Use content of the wiki page as template to display the item but with as little
parsing on the content as with a tpl on disk. The page should have the permission
%0tiki_p_use_as_template%1 set, and should only be editable by trusted users such as other site
admins', '', ''),
'since' => '6.5 & 7.1',
'filter' => 'pagename',
'advanced' => true,
'default' => '',
'profile_reference' => 'wiki_page',
],
'view_user' => [
'required' => false,
'name' => tra('View User'),
'description' => tra('Will display the items of the specified user'),
'since' => '2.0',
'doctype' => 'filter',
'default' => '',
],
'itemId' => [
'required' => false,
'name' => tra('Item ID'),
'description' => tra('Colon-separated list of item IDs to restrict the listing to'),
'since' => '2.0, multiple since 3.0',
'doctype' => 'filter',
'filter' => 'digits',
'separator' => ':',
'default' => '',
'profile_reference' => 'tracker_item',
],
'ignoreRequestItemId' => [
'required' => false,
'name' => tra('Ignore ItemId'),
'description' => tra('Ignore the itemId url parameter when filtering list (not ignored by default)'),
'since' => '5.0',
'doctype' => 'filter',
'filter' => 'alpha',
'default' => 'n',
'advanced' => true,
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'url' => [
'required' => false,
'name' => tra('URL'),
'description' => tr(
'The link that will be on each main field when %0showlinks="y"%1. Special values:',
'',
''
) . '
'
. 'url="mypage?itemId" - '
. tra('will link to the item based on its item ID') . '
'
. 'url="mypage?tr_offset" - '
. tra('will link to the item based on its offset value') . '
'
. 'url="sefurl" - '
. tr('will link to the item using %0itemX%1 (where X is the item ID) for when SEFURL is being
used', '', '') . '
'
. 'vi_tpl - ' . tr('use to show the item without admin buttons and with a back button
when using a template (Display > Section Format must be set to "Configured" in the tracker
properties). Example:', '', '')
. ' url="tiki-view_tracker_item.php?vi_tpl=wiki:PageName&itemId"
'
. 'ei_tpl - ' . tr('similar to %0vi_tpl%1 except that admin buttons are shown for users
with proper permissions when "Restrict non admins to wiki page access only" is set in the
tracker properties.', '', '') . '
',
'since' => tr(
'2.0, 3.0 for %0itemId%1, 11.0 for %0tr_offset%1, 14.0 for %0sefurl%1 and %0vi_tpl%1',
'',
''
),
'doctype' => 'show',
'parentparam' => ['name' => 'showlinks', 'value' => 'y'],
'filter' => 'url',
'default' => '',
],
'ldelim' => [
'required' => false,
'name' => tra('Left Delimiter'),
'description' => tra('Smarty left delimiter for Latex generation. Example:') . '@{',
'since' => '2.0',
'advanced' => true,
'default' => '{',
],
'rdelim' => [
'required' => false,
'name' => tra('Right Delimiter'),
'description' => tra('Smarty right delimiter for Latex generation Example:') . '}@',
'since' => '2.0',
'advanced' => true,
'default' => '}',
],
'list_mode' => [
'required' => false,
'name' => tra('List Mode'),
'description' => tra('Set output format. Yes (y) displays tracker list view with truncated values
(default); No (n) displays in tracker item view; Comma Separated Values (csv) outputs without any
HTML formatting.'),
'since' => '3.0',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n'],
['text' => tra('Comma Separated Values'), 'value' => 'csv']
]
],
'export' => [
'required' => false,
'name' => tra('Export Button'),
'description' => tra('Show an export button (not shown by default)'),
'since' => '3.0',
'filter' => 'alpha',
'advanced' => true,
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'compute' => [
'required' => false,
'name' => tra('Compute'),
'description' => tra('Sum or average all the values of a field and displays it at the bottom of the
table.') . ' ' . tra('fieldId') . '/sum:' . tra('fieldId') . '/avg',
'since' => '3.0',
'filter' => 'text',
'accepted' => tr('%0, separated by %1', 'fieldId/operator', ':'),
'advanced' => true,
'default' => '',
'profile_reference' => 'tracker_field_string',
],
'silent' => [
'required' => false,
'name' => tra('Silent'),
'description' => tra('Show nothing if no items found (the table header and a \'No records found\'
message is shown by default).'),
'since' => '4.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showdelete' => [
'required' => false,
'name' => tra('Show Delete'),
'description' => tra('Show a delete icon for each item (not shown by default)'),
'since' => '4.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'urlafterdelete' => [
'required' => false,
'name' => tra('Url to redirect to after delete'),
'description' => tra('Url to redirect to after delete'),
'since' => '11.0',
'filter' => 'url',
'default' => '',
],
'showopenitem' => [
'required' => false,
'name' => tra('Show Open Item'),
'description' => tra('Show an open item option (not shown by default)'),
'since' => '8.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showcloseitem' => [
'required' => false,
'name' => tra('Show Close Item'),
'description' => tra('Show a close item option (not shown by default)'),
'since' => '8.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showpenditem' => [
'required' => false,
'name' => tra('Show Pending Item'),
'description' => tra('Show a pending item option (not shown by default)'),
'since' => '8.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showwatch' => [
'required' => false,
'name' => tra('Show Watch Button'),
'description' => tra('Show a watch button (not shown by default)'),
'since' => '5.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showrss' => [
'required' => false,
'name' => tra('Show Feed Button'),
'description' => tra('Show an RSS feed button (not shown by default)'),
'since' => '5.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'showmap' => [
'required' => false,
'name' => tra('Show Results Map'),
'description' => tra('Show Map of results (not shown by default)'),
'since' => '12.0',
'doctype' => 'show',
'filter' => 'alpha',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'calendarfielddate' => [
'required' => false,
'name' => tra('Calendar Field IDs'),
'description' => tr('Used to display items in a calendar view. One fieldId if one date, or 2 fieldIds
separated with %0:%1 for %0start:end%1', '', ''),
'since' => '6.0',
'doctype' => 'calendar',
'separator' => ':',
'filter' => 'digits',
'default' => '',
'profile_reference' => 'tracker_field',
'parent' => 'input[name="params[trackerId]"]',
'parentkey' => 'tracker_id',
],
'calendarviewmode' => [
'required' => false,
'name' => tra('Calendar View Mode'),
'description' => tra('Calendar view type time span (default is month)'),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'word',
'default' => 'month',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Month'), 'value' => 'month'],
['text' => tra('Two months'), 'value' => 'bimester'],
['text' => tra('Trimester'), 'value' => 'trimester'],
['text' => tra('Quarter'), 'value' => 'quarter'],
['text' => tra('Semester'), 'value' => 'semester'],
['text' => tra('Year'), 'value' => 'year']
]
],
'calendarpopup' => [
'required' => false,
'name' => tra('Calendar Popup'),
'description' => tr('Calendar items will popup, overrides the %0stickypopup%1 parameter if turned off
(default is to pop up).', '', ''),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
],
],
'calendarstickypopup' => [
'required' => false,
'name' => tra('Sticky Popup'),
'description' => tra('Calendar item popups will stay open if set to y (Yes). Not sticky by default'),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'calendarbeginmonth' => [
'required' => false,
'name' => tra('Beginning of Month'),
'description' => tra('Set whether calendar will begin at the beginning of the month (does by default).'),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'calendarviewnavbar' => [
'required' => false,
'name' => tra('Navigation Bar'),
'description' => tra('Show calendar navigation bar (shown by default).'),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n'],
['text' => tra('Partial'), 'value' => 'partial']
]
],
'calendartitle' => [
'required' => false,
'name' => tra('Calendar Title'),
'description' => tra('Enter a title to display a calendar title (not set by default)'),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'text',
'default' => '',
],
'calendardelta' => [
'required' => false,
'name' => tra('Calendar Delta'),
'description' => tra('Set the calendar delta that will be shown (not set by default)'),
'since' => '6.0',
'doctype' => 'calendar',
'filter' => 'text',
'default' => '',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Plus Month'), 'value' => '+month'],
['text' => tra('Minus Month'), 'value' => '-month'],
['text' => tra('Plus Two months'), 'value' => '+bimester'],
['text' => tra('Minus Two months'), 'value' => '-bimester']
]
],
'displaysheet' => [
'required' => false,
'name' => tra('Display Spreadsheet.'),
'description' => tra('Display tracker as a spreadsheet (not used by default)'),
'since' => '6.0',
'filter' => 'alpha',
'default' => 'n',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'force_compile' => [
'required' => false,
'name' => tra('Force Compile.'),
'description' => tra('Force Smarty to recompile the templates for each tracker item when using a
wiki page as a template. Default=n (best performance)'),
'since' => '6.0',
'filter' => 'alpha',
'default' => 'n',
'advanced' => true,
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'periodQuantity' => [
'required' => false,
'name' => tr('Period quantity'),
'description' => tr('Numeric value to display only last tracker items created within a user defined
time-frame. Used in conjunction with the next parameter "Period unit", this parameter indicates how
many of those units are to be considered to define the time frame. Use in conjunction with
%0max=-"1"%1 to list all items (by default %0max%1 is set to %010%1).', '', ''),
'since' => '6.5, 7.x & 8.0',
'doctype' => 'filter',
'filter' => 'int',
'default' => '',
],
'periodUnit' => [
'required' => false,
'name' => tr('Period unit'),
'description' => tr('Time unit used with "Period quantity"'),
'since' => '6.5, 7.x & 8.0',
'doctype' => 'filter',
'filter' => 'word',
'options' => [
['text' => '', 'value' => ''],
['text' => tr('Hour'), 'value' => 'hour'],
['text' => tr('Day'), 'value' => 'day'],
['text' => tr('Week'), 'value' => 'week'],
['text' => tr('Month'), 'value' => 'month'],
],
'default' => '',
],
'periodType' => [
'required' => false,
'name' => tr('Period type'),
'description' => tr('Time period after creation or after modification'),
'since' => '6.7, 7.x, 8.4 & 9.0',
'doctype' => 'filter',
'filter' => 'word',
'options' => [
['text' => '', 'value' => ''],
['text' => tr('Creation'), 'value' => 'c'],
['text' => tr('Modification'), 'value' => 'm'],
],
'default' => '',
],
'editable' => [
'required' => false,
'name' => tr('Inline edit'),
'description' => tr('Colon-separated list of fields for which inline editing will be enabled.'),
'since' => '11.0',
'filter' => 'digits',
'separator' => ':',
'default' => '',
'profile_reference' => 'tracker_field',
'parent' => 'input[name="params[trackerId]"]',
'parentkey' => 'tracker_id',
],
'editableall' => [
'required' => false,
'name' => tr('Inline edit All'),
'description' => tr('Allow all displayed fields to be editable'),
'since' => '11.0',
'default' => 'y',
'advanced' => true,
'filter' => 'alpha',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
'force_separate_compile' => [
'required' => false,
'name' => tra('Compile Each Item'),
'description' => tra('Compile each item separately instead of compiling the entire template.'),
'since' => '11.0',
'filter' => 'alpha',
'default' => 'y',
'options' => [
['text' => '', 'value' => ''],
['text' => tra('Yes'), 'value' => 'y'],
['text' => tra('No'), 'value' => 'n']
]
],
],
$tsparams
);
return [
'name' => tra('Tracker List'),
'documentation' => 'PluginTrackerList',
'description' => tra('List, filter and sort the items in a tracker'),
'prefs' => [ 'feature_trackers', 'wikiplugin_trackerlist' ],
'tags' => [ 'basic' ],
'body' => tra('Notice'),
'additional' => '
' . tr('Additional information when using tablesorter and the %0 parameter (Server Side Processing) is set to y:', 'server') . '