News:

Dear jDownloads users, There is currently no Joomla 6 compatible version available. However, we are working on it and hope to release it shortly.

Main Menu
Support-Forum

Category Listbox Issue

Started by ghicar, 07.04.2026 12:33:23

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ghicar

I am having problems with the category listbox that can be displayed in the header of a "List All Categories" menu item.

I have multiple category layers, and when I start off with the "Overview" all the categories and sub-categories are displayed ok in the listbox. However, if I move to a category (any category or sub category) then the list box dropdown display has most (if not all) the top level categories missing but the sub-categories are there.

You can still traverse the category tree using the "up" buttton.  Also if you select a top level category from either the category listbox or from selecting a category in the documents list the category listbox displays overview (presumably because the selected category is not in the list).

I have reproduced this on a fresh Joomla 5.4.4 install with just a few categories and downloads.

Environment:
Joomla: 5.4.4
jDownloads: 4.1.2
PHP: 8.2.12 (and 8.4.19)
template: Cassiopeia

  •  

Arno

#1
Hi,
can you upload a pic?

Edit:
and what value do you have here, see pic.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ghicar

#2
I have "select max levels" set to zero, but changing this has no affect on the issue.

I have two screenshots showing the complete list and the partial list but cannot work out how to attach or upload them.
Update: I have just sent you a personal message with the two screenshots.
  •  

Arno

OK, I think I've found the mistake. I'll be in touch later.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ghicar

Think have tracked the issue down to "~\components\com_jdownloads\tmpl\category\default.php" line 312

It seems this code is not used when "overview" is displayed but it is when a category is selected.

In the call to JDHelper::buildCategorySelectBox, need to change one of the arguments to correct placement of quotes from:
$params->get('view_empty_categories, 1')
to:
$params->get('view_empty_categories', 1)
Then you can see all categories
  •  

Arno

#5
Yes, I've seen that error before, too.

I must apologise: in the latest versions, 4.1.1 and 4.1.2, some fixes were unfortunately released prematurely and without sufficient testing.
This has unfortunately led to a number of subsequent errors that could have been avoided.

Things are a bit different with version 4.1; a beta version was available for quite some time. Yet, despite this, users reported almost no bugs. Although, of course, there were bugs – and there certainly still are. But that's just how it is with open-source products.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •