Group title commit broke display

In case anyone needs this too I created a new layout in /templates/my-template/html/layouts/com_fabrik/lists/fabrik-group-by-heading.php. Basically all I did was move the </a> to the end. If you don't have some of those folders in your template just create them along with the file.

Code:
// No direct access
defined('_JEXEC') or die('Restricted access');

$d = $displayData;
$imgProps = array('alt' => FText::_('COM_FABRIK_TOGGLE'), 'data-role' => 'toggle', 'data-expand-icon' => 'icon-arrow-down', 'data-collapse-icon' => 'icon-arrow-right');
?>

<?php if ($d->emptyDataMessage != '') : ?>
<a href="#" class="toggle">
<?php else: ?>
<a href="#" class="toggle fabrikTip" title="<?php echo $d->emptyDataMessage ?>" opts='{"trigger": "hover"}'>
<?php endif; ?>
<?php echo FabrikHelperHTML::image('arrow-down', 'list', $d->tmpl, $imgProps); ?>
<span class="groupTitle">
<?php echo $d->title; ?>
<?php $d->group_by_show_count = isset($d->group_by_show_count) ? $d->group_by_show_count : '1';
if ($d->group_by_show_count) : ?>
<span class="groupCount">(<?php echo $d->count ?>)</span>
<?php endif; ?>
</span>
</a>
 
I've modified that template again.

I'd changed it recently to avoid problems when the group title contained links, and changed the clickable link to only be the up/down arrow. So instead, I'll strip any HTML out of the title.


-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top