by keukie on Fri Jun 19, 2009 11:58 am
Hi,
I found your new version of the module after I fixed the problem myself.
I did it a bit more efficient, I don't know if it's always correct (I think it is),
so I'm going to use your solution.
Here is what I did:
I added the line:
$menu = array_reverse($menu, true);
after the construction of the newmenu in function getJFMenu in mod_jflanguageselection\helper.php
That will sort your menu from parent to child, since it was constructed the other way around.
I must point out that your solution didn't work for me outright.
After some debugging I found out that the sublevels of all my menuitems were equal to 0.
I think this happened because my site was migrated from Mambo, which apparently doesn't fill in these values.
So if any of you also migrated from Mambo, and still don't get this working: correct your sublevels!
I will include an sql file to do this. If you don't use the jos_ prefix, or have more than five levels, you should change it to your needs.
- Attachments
-
sublevels.zip
- (291 Bytes) Downloaded 122 times