corsicorsari1
Hi,
You can open this file of plugin: [ROOT]/plugins/k2/jak2filter/jak2filter.php
At the end of file, look for this function:
private function getCategoryRoute($field, $catid, $language = 0)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$items = array();
do {
$query->clear();
$query->select('*')->from('#__categories')->where('id='.$db->quote($catid));
$db->setQuery($query);
$cat = $db->loadObject();
if($cat && $cat->parent_id > 1) {
$items[] = $cat;
$catid = $cat->parent_id;
}
} while ($cat && $cat->parent_id > 1);
$links = array();
for($i=count($items)-1; $i>=0; $i--) {
$links[] = sprintf('<a href="%s" title="%s">%s</a>',
JRoute::_('index.php?option=com_jak2filter&view=itemlist&xf_'.$field->id.'_txt='.$items[$i]->id),
htmlspecialchars($items[$i]->title),
$items[$i]->title
);
}
return $links;
}
change it to:
private function getCategoryRoute($field, $catid, $language = 0)
{
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$items = array();
do {
$query->clear();
$query->select('*')->from('#__categories')->where('id='.$db->quote($catid));
$db->setQuery($query);
$cat = $db->loadObject();
if($cat && $cat->parent_id > 1) {
$items[] = $cat;
$catid = $cat->parent_id;
}
} while ($cat && $cat->parent_id > 1);
$links = array();
for($i=count($items)-1; $i>=0; $i--) {
$links[] = sprintf('<span>%s</span>',
// JRoute::_('index.php?option=com_jak2filter&view=itemlist&xf_'.$field->id.'_txt='.$items[$i]->id),
// htmlspecialchars($items[$i]->title),
$items[$i]->title
);
}
return $links;
}
Backup the old file first before updating.