No Code Attached Yet
avatar neo314
neo314
1 Apr 2026

When using the jgrid system to build back end data pages, I had a recent bug that I resolved and is only relevant because it prompted me to think of this request. There are times when one does not necessarily want to do queries in response to custom toggles similar to publish/unpublish and similar list aware actions. It would be nice to be able to embed additional data into the jgrid item along with the cid and if list aware (multiple transactions based on back end checking of multiple records, be able to match the embedded data with the cid.

I'm specifically thinking of code like this from my helper:

switch ($crew_list_status[1]) {
case '0':
$task = 'crew_list_toggle_on';
$options['tip'] = true;
$options['active_title'] = 'COM_FIRECREW_CREW_LIST_SUBSCRIBE';
$options['active_class'] = 'text-danger border-danger icon-unpublish';
$options['checkbox'] = $checkbox;
$options['prefix'] = 'fc_members.';
break;
case '1':
$task = 'crew_list_toggle_off';
$options['tip'] = true;
$options['active_title'] = 'COM_FIRECREW_CREW_LIST_UNSUBSCRIBE';
$options['active_class'] = 'text-success border-success icon-star';
$options['checkbox'] = $checkbox;
$options['prefix'] = 'fc_members.';
break;
}
$html = HTMLHelper::_('jgrid.action',$index, $task, $options);

It would be nice to be able to have $options['custom'] which could contain simple or json encoded data and end up in the link as data-item-custom. I can see how to do this in jgrid easily. I have not had time to look at where and how one would also modify the code for list aware transaction. It would be nice to be able to have an array of custom data values where the members correspond to the order of the cid values when multiple records are selected. i.e. when a list of cid's are returned, if the custom option were used, a corresponding list of custom values would also be returned.

avatar neo314 neo314 - open - 1 Apr 2026
avatar neo314 neo314 - change - 1 Apr 2026
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 1 Apr 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Apr 2026
avatar HLeithner HLeithner - change - 1 Apr 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-04-01 17:06:58
Closed_By HLeithner
avatar HLeithner HLeithner - close - 1 Apr 2026

Add a Comment

Login with GitHub to post a comment