For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
<?php if ($this->canGroupBy) : ?>
<div class="col px-0">
<?php
$displayData = new stdClass;
$displayData->icon = FabrikHelperHTML::icon('icon-list-view');
$displayData->label = Text::_('COM_FABRIK_GROUP_BY');
$displayData->links = array();
$elementsToDisplay = array('vw_pm___EventName', 'vw_pm___Organization');
foreach ($this->groupByHeadings as $url => $obj) :
if (in_array($obj->element_name, $elementsToDisplay)) :
$displayData->links[] = '<a class="nav-link" data-groupby="' . $obj->group_by . '" href="' . $url . '">' . $obj->label . '</a>';
endif;
endforeach;
?>
</div>
<?php endif;
Debug $this->groupByHeadings to get the 'element_name' of the None option and add it to your elementsToDisplay (It may be just "").
<?php if ($this->canGroupBy) : ?>
<div class="col px-0">
<?php
$displayData = new stdClass;
$displayData->icon = FabrikHelperHTML::icon('icon-list-view');
$displayData->label = Text::_('COM_FABRIK_GROUP_BY');
$displayData->links = array();
$groupBysToDisplay = array('','vw_pm___EventName', 'vw_pm___Organization');
foreach ($this->groupByHeadings as $url => $obj) :
if (in_array($obj->group_by, $groupBysToDisplay) || ($obj->group_by === 0)) :
$label = ($obj->group_by === '') ? 'None' : $obj->label;
$displayData->links[] = '<a class="nav-link" data-groupby="' . $obj->group_by . '" href="' . $url . '">' . $label . '</a>';
endif;
endforeach;
$layout = $this->getModel()->getLayout('fabrik-nav-dropdown');
echo $layout->render($displayData);
?>
</div>
<?php endif;