Hi,
I have attached 12 screenshots of this Joomla bug issue.
In Joomla! 3.3.6 the subcategories in menu items do not display on the frontend. They displayed correctly prior to the upgrade from J2.5x to J3.3x and I did not change any menu/category/article display settings.
I have all the menu item settings set to "Global". The menu items use the "Global" Article Manager Option settings.
I didn't change any settings before or after upgrading from J2.5x to J3.3x so it should have stayed the same with subcategories displaying like they used to.
The subcategories are not listed on the "List All Categories" menu item pages. For example, if you go to this test site page:
http://2test-directory.nemmar.net/animals-wildlife
Only the top level categories display and no subcategories display. All the top level and sub-level categories should be displaying (like they did prior to the upgrade) on the "List All Categories" menu item pages. You can see examples of sub-categories that should be but are not displaying on the main page at:
http://2test-directory.nemmar.net/animals-wildlife/environmental-and-wildlife-conservation
http://2test-directory.nemmar.net/animals-wildlife/land-species
I cleared the cache and also tested this in Protostar template and my Joostrap template and the same problem occurs in both so it probably is a Joomla 3.3x bug.
IMHO, the issue is that, when using List Categories, "all" is not taken into account as the Option for "all" is "-1"
Also, no choice for "None".
The problem would also exists for other components than com_content.
See the code in default_items.php:
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
So, whats the solution? Thanks
We have to make a PR correcting this behavior... In the xml as well as the display. If nobody does it, I will look at it in a few days.
I'm now looking into this: will report shortly (24h max) if I feel like pushing something...
I would like to report on this issue here, step by step as I proceed, so that someone can "stop" me as soon as I'm taking a "wrong way". If this is inappropriate and considered a nuisance... well... stop me!
First report:
-1
to something really big. Would 9999
suffice? Who in the world would need more than 9999 categories levels? OK, let's make it 2147483647
!+
sign, while it should become a -
when the corresponding level is opened. Will look into thisWe have a PR with a first tentative commit (a.k.a "The kludge")
@smz: you are right: "None" makes no sense.
Test instructions:
Set Park Site as top category.
"Subcategory Levels" in the "Categories" tab deals with the subcategories of the TOP category
1 => one level subcategories will display Park Blog and Photo Gallery
2 => 2 levels down will also display Animals and Scenery as sub of Photo gallery
@smz proposed solution smz@d752324 works fine here.
When set to All, in this example, 2nd level will now display.
@infograf768 hmmm... the fact that you pointed to the initial commit and not to the PR makes me think that you don't like me having addressed the icon issue in the same PR... Is this the case? Do you want me to get rid of that and eventually propose a separate PR? No problem for me...
Yes, I agree with the interpretation of "Subcategory Levels": do we want to change strings here?
ops, just saw the PR, did not see the # in #4937 (comment)
will look now
Status | New | ⇒ | Confirmed |
Labels |
Added:
?
|
Status | Confirmed | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-03-12 10:29:09 |
Closed_By | ⇒ | Harmageddon |
Closing this, as #5469 is merged.
Set to "closed" on behalf of @Harmageddon by The JTracker Application at issues.joomla.org/joomla-cms/4937
This seems to be broken again in the recent Joomla Versions
True. There seems to be a problem. Awaiting fix for this. Thanks