By Tony on Saturday, 18 January 2014
Posted in General Issues
Replies 9
Likes 0
Views 1K
Votes 0
I have categories with sub-categories but when I create a module ... mod_easyblogcategories ... the top level category and sub-categories do not show in the front-end even though there are posts in the sub-categories (there are no posts directly to the top category).

I think the problem is that when an post is linked to a sub-category, the top category is not updated as having any posts and so if the module is set to not show empty categories, it ignores the top level category and does not show it or it's sub categories.

Is this the error and is there a fix for this ?

Thanks for the help
Hello Tony,

I am really sorry for the delay of this reply as it is a weekend for us here.
Could you mind provide us with a temporary access to your Joomla backend (as admin) and an FTP access so we can check that issue and see where the problem is coming from? Please advise.
·
Saturday, 18 January 2014 12:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you very much for responding.

Our IT does not let us provide user IDs and FTP. Could we get some input on where the problem might exist and what we should investigate to identify the source of the problem.

Many thanks again
·
Saturday, 18 January 2014 15:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

You're welcome,
Hmm that was very hard to investigate on this issues if without access in your Joomla backend site.
Could you can provide a screenshot for your mod_easyblogcategories setting? example of this : http://screencast.com/t/95QGmwIcg (What your current version of mod_easyblogcategories ? )
·
Saturday, 18 January 2014 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Yes, sorry but I guess they are just careful.

The version we are on is 3.9.15188. Please see the screenshots attached showing the problem.

Thanks again
·
Sunday, 19 January 2014 05:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

Sorry for late reply to this,
Thanks for your provided the screenshot and explanation of your setting, that was very helpful to us investigate what is that problem.
It seems like your "Solution" category is 0 post and you set Hide categories with no post "YES" , mean if the main category is no post then it won't show including the subcategories.
If the "Solution" category got publish 1 blog post, then it will showing that category and subcategories in the mod_easyblogCategories.
·
Sunday, 19 January 2014 13:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes that is correct .. if a post is assign to the top category, then the sub-categories show. This however is a bug as the top category should just be a placeholder for the sub categories and should not require a post to be made to it. Any chance of a fix being done for this ?

Thanks
·
Sunday, 19 January 2014 19:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

Sorry for late reply to this,
Yes, actually that was default behavior, because if make the sub-categories to show up (when the parent category is 0 post) which will lead to very heavy SQL queries
You can imagine if the site got 1000 sub-categories with different category level, when load the page that time, the queries will always find all the parent category first which got post then only find the sub-categories. Mean if the parent category got post, the queries not too much heavy lifting to get the result you want.
·
Sunday, 19 January 2014 22:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Perhaps you could update the post qty of the top category when the posts are added to the sub-categories ie. sum the the posts of the sub-categories and make that the total number of posts in the top category. Then the top category is not zero and so will show the tree.

This will resolve your SQL query burden concern.

Regards
Tony
·
Monday, 20 January 2014 06:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

Thanks for your feedback. As of now this isn't possible. I will add this in the request list so that we can review this for the next major release of EasyBlog.

Cheers!
·
Friday, 24 January 2014 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post