By David Frisch on Tuesday, 26 April 2016
Posted in Technical Issues
Likes 0
Views 1K
Votes 0
Hi folks,
I'm using the EasyDiscuss - Categories module which looks great btw. My only issue is if I want every sub-category to be displayed in the category tree layout type, I get the redundant information under every category, that there are or are not any subcatorgies. The information makes no sense since I show every category anyway, so no need to tell the obvious
Long story short: I would love to remove the "0 subcategories", "2 subcategories" ... so the module becomes shorter and slimmer.
I'm not great with php, so if somebody could give me a hint, that would be greatly appreciated!
Hi David Frisch ,

Thanks for the explanation David, can you replace the file (see attachment) into folder:
DIR:../modules/mod_easydiscuss_categories/tmpl/tree_item.php
and looks how it goes?
·
Wednesday, 27 April 2016 19:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi David Frisch ,

I am sorry for the delay of this reply. Correct me if I am wrong, regarding your inquiry you don't want the subcategory to be appeared and want only the parent category appear (to make it shorter) right? Actually you can setting the EasyDiscuss - Categories module by:
1. Click Module>EasyDiscuss-Category>Module>Enable Exclude Sub-Categories
Please refer this screenshot: http://screencast.com/t/v6K7iskGcV84

Hope this helps
·
Wednesday, 27 April 2016 14:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fadhli,
sorry for my confusing explanation Actually I want the subcategory displayed but I just dont want to display the information below the name of the category. If you check the image that I attached in the first post. We have the gray (0 subcategories, 2 subcategories , ...) .. I want those gray lines to disappear because they dont show any necessary information.

David
·
Wednesday, 27 April 2016 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi David,

Thanks for the clarification. Regarding the 'sub categories' count, I am sorry but currently there is no option to turn this off If you want to remove the count, you will need to manually edit the theme for this module.

Open the file 'JOOMLA/modules/mod_easydiscuss_categories/tmpl/tree_item.php' and remove the code below:


<li data-breadcrumb="·"><?php echo ED::themes()->getNouns('MOD_DISCUSSIONSCATEGORIES_SUBCATEGORIES_COUNT', $category->totalSubcategories, true);?></li>


Hope this help and have a nice day!
Sam
·
Wednesday, 27 April 2016 19:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
I replaced the file and it works perfectly! Thanks guys.
David
·
Friday, 29 April 2016 16:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi David Frisch,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.

Have a nice day ahead
·
Friday, 29 April 2016 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·

Thanks for the clarification. Regarding the 'sub categories' count, I am sorry but currently, there is no option to turn this off If you want to remove the count, you will need to manually edit the theme for this module.

Open the file 'JOOMLA/modules/mod_easydiscuss_categories/tmpl/tree_item.php' and remove the code below:


<li data-breadcrumb="·"><?php echo ED::themes()->getNouns('MOD_DISCUSSIONSCATEGORIES_SUBCATEGORIES_COUNT', $category->totalSubcategories, true);?></li>



Regarding this.... Is it possible to create a template override; as to avoid having it removed upon updating?

If so, would it be as simple as placing it in both;


JOOMLA/template/html/com_easydiscuss/mod_easydiscuss_categories/tmpl/tree_item.php



JOOMLA/template/html/com_easydiscuss/modules/mod_easydiscuss_categories/tmpl/tree_item.php


both didn't seem to work...
Does this mean this isn't something that can get overwritten?
·
Friday, 11 August 2017 15:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ulysses,

The exact path to override the tree_item.php was:
JOOMLA/templates/<YOUR CURRENT TEMPLATE>/html/mod_easydiscuss_categories/..
without the tmpl folder
·
Friday, 11 August 2017 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
I realize now why it wasn't working aside from incorrect location.
It seems we are talking about different spots.

What I was referring to was the location when you click on categories within it's own page.
·
Saturday, 12 August 2017 14:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Yeah, it seems like this thread was referring the Easydiscuss category module instead of category listing page.

Do you mean you would like to remove the subcategory count on the category listing page?

If yes, try download my attached file and replace into this template override file location.

JoomlaFolder/templates/YourCurrentTemplate/html/com_easydiscuss/categories/default.item.php
·
Sunday, 13 August 2017 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, perfect....Thank you Arlex:D
·
Sunday, 13 August 2017 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Ulysses, glad that your issues are resolved now
·
Monday, 14 August 2017 01:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post