// Add truncate category description preserving html tags

This commit is contained in:
Jerome Nadaud
2013-11-15 11:03:06 +01:00
parent 97be96ede8
commit 50eee795ed
3 changed files with 137 additions and 1 deletions
+1
View File
@@ -116,6 +116,7 @@ class CategoryControllerCore extends FrontController
$this->context->smarty->assign(array(
'category' => $this->category,
'description_short' => Tools::truncateString($this->category->description),
'products' => (isset($this->cat_products) && $this->cat_products) ? $this->cat_products : null,
'id_category' => (int)$this->category->id,
'id_category_parent' => (int)$this->category->id_parent,