? Success

User tests: Successful: Unsuccessful:

avatar radiant-tech
radiant-tech
24 Feb 2014

When the option 'countItems' is passed to the JCategories load function, the var 'numitems' is created for JCategoryNode; however, 'childrennumitems' is never set.

The patch sets the value of 'childrennumitems' at the end of the load function, after all the nodes have been created.

Having this value available is helpful in cases such as Tracker #33002 -- where the "Subcategories" text is displayed even if user chooses to hide empty subcategories and none of the subcategories have items.

Patch also includes suggested changes to the content category layout file and to com_content blog category view to help with testing.
Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33335

avatar radiant-tech radiant-tech - open - 24 Feb 2014
avatar jdockum
jdockum - comment - 12 Jun 2014

This seems to work if you change the parameter in the global settings, however not from the menu parameter. I had it set to "show" globally (default, I believe) and was trying to hide it via the menu parameter. Changing it there seemed to have no effect, despite the file changes.

avatar brianteeman
brianteeman - comment - 8 Aug 2014

Closed as per the comment on the tracker

avatar brianteeman brianteeman - change - 8 Aug 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-08-08 14:25:27
avatar brianteeman brianteeman - change - 8 Aug 2014
Title
var childrennumitems in JCategoryNode is never set
[#33335] var childrennumitems in JCategoryNode is never set
avatar brianteeman brianteeman - close - 8 Aug 2014

Add a Comment

Login with GitHub to post a comment