-
Notifications
You must be signed in to change notification settings - Fork 63
Sorting
TJ Baker edited this page Nov 20, 2013
·
2 revisions
redCORE integrates the standard Joomla! sorting but using layouts to render the Html. So you can customise the layout per component without having to deal with it.
This is the most used case for the title of table columns.
<?php echo JHtml::_('rgrid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>Special example of the ordering column that only displays an icon.
<?php echo JHtml::_('rgrid.sort', null, 'a.ordering', $listDirn, $listOrder, null, 'asc', '', 'icon-sort'); ?>redCORE documentation menu: