echo sorting direction without grid.sort on selected column

by almost okey   Last Updated February 06, 2018 22:10 PM

using JHTML grid.sort I can sort the columns but I want to sort without this

<?php echo JHTML::_( 'grid.sort', JText::_('lastName'), 'lastName', $this->sortDirection, $this->sortColumn); ?>

the html output of this

<a href="#" onclick="Joomla.tableOrdering('lastName','asc','');return false;" class="hasPopover" title="" data-content="Sort by direction" data-placement="top" data-original-title="lastName">Last Name</a>

its possible to echo the "selected" column direction?

This will output only the default-selected direction:

<?php echo $this->sortDirection; ?>


Related Questions



Using CodeMirror editor in custom component

Updated October 09, 2016 09:04 AM

Make a checkbox group disappear

Updated March 21, 2017 23:10 PM

passing an array from view to controller to model

Updated March 11, 2018 17:10 PM