Active
Project:
Taxonomy Treemenu
Version:
6.x-6.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 00:01 UTC
Updated:
16 Dec 2009 at 00:08 UTC
When I add a new term it shows up at the bottom of the list of terms/menu items instead of in alphabetical order. I've emptied all caches and rebuilt the treemenu to no avail.
How do I get newly added terms to show up in the treemenu in alphabetical order along with the old ones?
Here is an example of what is happening, with "Carrots" as the new term:
Current Menu
- Apples
- Bannanas
- Eggplants
- Carrots
Desired Menu
- Apples
- Bannanas
- Carrots
- Eggplants
I have no idea if this is a simple fix that I overlooked or if this requires deeper tinkering. Any help would be appreciated! Thanks!
Comments
Comment #1
rcrowther commentedA menu rebuild should fix this? Find the link for this in the admin menu or the 'devel' menu, if you use the 'devel' module. I hope. That would be the quick fix. I agree it's not what a user would anticipate.
Background: Treemenu just builds the menus, so the data is not the same as the taxonomy itself, it is separate. I guess what's happening here is the builder is tagging the item on, rather than resorting the terms.
There's some deeper tinkering, as you guessed! There's been a call already for the module to have the same ordering options on term items as on the nodes - which options most users seem to feel are best thing since sliced bread (user inspired, I might add).
At some point I must look at the builder again, as I have to look at the performance issues anyhow.
Hope this helps,
Rob
Comment #2
mindewen commentedHi, Rob, thanks for the reply! I tried the following, in order:
Flushed all caches
Rebuilt menus
Rebuilt treemenu
- the individual menu (I have only one)
- "(link options default)"
Manually ran cron (just in case that makes any difference)
Flushed all caches again
There is still no change.
New terms are added not through tagging but through the normal "Add term to [vocab]" page. I checked the vocabulary terms page and they're all listed in correct alphabetical order. I also looked on the "/admin/build/menu-customize/menu-[menuname]" page, and the menu items are listed in the correct order there, too. They're just not in the right order in the sidebar block.
I should perhaps clarify that the nodes themselves are in alphabetical order, as per the settings for the treemenu; it's the terms that are showing up out of order.
Is there anything else I can try tinkering with?
Comment #3
mindewen commentedAny new thoughts or updates on this?
Comment #4
rcrowther commentedSorry 'bout the long delay on replies at the moment.
Yes, I think you've understood the underlying situation - the ordering options are for node links. Terms are ordered as they arrive. If you can't convince treemenu to reoganize by rebuilding, then there is no other way (I can think of).
When I get back to development, I'll look at this. Currently, though, that will be in a month or so.
Rob
Comment #5
mindewen commentedThanks for getting back to me, Rob. If/when you get a chance to look at this, I'd appreciate an update. :)
- Minde