Best Answer SmetDenis , 18 March 2014 - 08:43
Hello, Adrian
As I see, you used Itemcategory element.
Please, open file \media\zoo\elements\itemcategory\itemcategory.php
and find function render()
Replace it to this code
public function render($params = array())
{
$params = $this->app->data->create($params);
$values = array();
$primaryCategory = $this->getItem()->getPrimaryCategoryId();
foreach ($this->_item->getRelatedCategories(true) as $category) {
if ($primaryCategory != $category->id) {
$values[] = $params->get('linked') ? '<a href="' . $this->app->route->category($category) . '">' . $category->name . '</a>' : $category->name;
}
}
return $this->app->element->applySeparators($params->get('separated_by'), $values);
}
After that, element will output only additional categories (not primary).
Best regards. Go to the full post


This topic is locked








