Question

I am creating a blog using joomla 3.2, my menu item type is a category blog. I have set the # Articles in Category to show. What I would like is that the number appears within brackets, like this: "General (1)" instead of just "General 1", where "General" is my subcategory.

Was it helpful?

Solution

Found the solution!

Here is what you need to do:

create an override of com_content/category and open the blog_children.php. Look for line 47 and change the following

<?php echo $child->getNumItems(true); ?>

to

<?php echo '('; echo $child->getNumItems(true); echo ')'; ?>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top