Closed (fixed)
Project:
Taxonomy Treemenu
Version:
6.x-4.1-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2009 at 12:30 UTC
Updated:
22 Aug 2009 at 16:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
Apollo610 commentedHi Rob, just to give you some background on my taxonomy branch.
It's a multi-tiered custom taxonomy vocabulary called "Wine Regions" that's assigned to a custom node type. All of the terms are single-parents. I switched the vocabulary assignment to node type "Forum Topic" and "Story", but that didn't make it appear in the dropdown when creating a new taxonomy treemenu. I used Taxonomy Manager to create the hierarchy structure (which in some cases goes 6 levels deep).
I'm by no means a master of Drupal's taxonomy structure (this is the first project I'm using where I'm really incorporating it), so it's possible I'm missing something basic. Anything else I can look up to help troubleshoot?
Thanks for your help - I also reinstalled the rerolled version of Taxonomy Treemenu and everything installed smoothly without any errors. :)
Comment #2
rcrowther commentedI'll just throw in some background,
Taxonomy Treemenu does something big. It doesn't scarf up some data, or use a custom widget, it builds an entire bridge across from the taxonomy to the menu structure, then delivers using a hacked copy of the menu renderer. Disadvantage: it's massive compared to similar efforts, and I've had to ken the entire Drupal structure round these areas. Advantage: much of the power of Drupal core thinking.
Hence my current challenge - discovering the taxonomy is done by core functions! What can go wrong with that?
Hang on, there's an idea...
Could you check on your taxonomy config (/?q=admin/content/taxonomy) 'edit'
(don't have to do anything there, hit the bowser 'back' button to leave as is)
is 'Tags' checked?
Comment #3
Apollo610 commentedHi Rob, yeah the taxonomy I'm looking to use is a tagged taxonomy, so TAGS is enabled.
Comment #4
rcrowther commentedOk, think we've got it.
I have to replicate the problem, and decide on the fix. Could take me two or three days.
Or you could try yourself, on your installation. This fix is easy, and can't damage anything.
(I've written these instructions for if you don't know much or anything of code. Just smile if you do!)
Find your 'Drupal' folder. I don't know where that is, or if it is still named 'Drupal'. It contains folders named 'Modules', and files named 'robots', 'sites', amongst others.
Burrow into the directories down this path,
sites > all > modules > taxonomy_treemenu
(You may well have installed modules here anyway, so you know where I mean.)
Go into the 'taxonomy_treemenu' folder, and open the file 'taxonomy_treemenu.admin.inc'. Do not open with a word processor, they add formatting code to files. Open with a simple text editor - Notepad in Windows, Gedit or something similar in Linux.
In the code, find this line. It's close to the top:
function taxonomy_treemenu_form_all($free_tags = 0) {
A couple of lines down you'll find this line:
if ($vocabulary->tags && !$free_tags) { continue; }
(It's line 81, if you have line numbering)
Put two forward slashes at the beginning of the line, line this,
//if ($vocabulary->tags && !$free_tags) { continue; }
or delete the line.
Save.
Close everything.
Have another look at the branch selector. Should be there now.
Thanks for sticking with this. Code has improved in little but important ways. If you decide to try yourself, do tell me results!
Comment #5
Apollo610 commentedHi Rob - thanks for the support... I've made the necessary changes, making the free-tags taxonomy now visible, which is great. I created the taxonomy menutree block, and it displays, however when I drill down from the parent items in the hierarchy, I get a blank menu item (screenshot attached).
I haven't had a chance to dig in too much just yet, the CSS though looks OK (the text color != the background color) and when I mouse over the blank gray area i get a generic site.com/taxonomy/term URL destination, which doesn't seem right.
Any ideas? I'll look in a bit more from my side tomorrow as well.
Thanks!
Comment #6
rcrowther commentedAck, we get all the issues now eh? Still, that's what a BETA is for. You should be spraying menus wherever you want by now.
We need a bridge of understanding between your situation and the module. Free tagging is an untested area, but I can't see any conceptual reason why it has an influence.
The URL's are wrong, for sure. Treemenu uses its own URL's to ensure comprehensive information delivery. They look like this,
http://my_site/?q=taxmenu/menu_name/term/[parent_terms]/[tid]
http://my_site/?q=taxmenu/menu_name/node/[parent_terms]/[nid]
I'm a bit worried you might have a job you wish to finish. You could check out this,
Comparison of menu modules
though I haven';t got very far with it yet.
Back to the issue...
You may be way ahead of me on this, this would be my first effort though,
If you can see your forum, create a test menu from that. Duck all styling/templating etc. and see if a raw menu will work. then you have something working and can see how the URLs relate to the paging.
And we can work from there.
Comment #7
rcrowther commentedI've replicated the bug. Will need some time to assess it. Clearly not an error with existing menus.
Rob
Comment #8
Apollo610 commentedHi Rob, no worries on getting this finished ASAP, I'm very early in development and just testing out some modules to see which is best suited for the site.
I'm more than happy to test any fixes you come up with so that I can do my part in the community to help you developer guys.
Thanks for your help as always, hopefully we can get freetagging up and running.
Comment #9
rcrowther commentedIf you find any interesting related stuff, do add to the 'Comparisons' page, or post here so I can! My aim there, really, is getting people to a working solution, this module or any other.
Know how I replicated your problem? Don't know if this is your issue, of course.
Took a working site backup with no Taxonomy (bar a Forum) and no treemenu, just hard links.
Added a site level vocabulary. Added Treemenu.
Wondered why I had nothing. At this point, it looked very like your situation, EXCEPT, you appear to have an item under the 'Europe' term.
Scratched my head a bit, what's going on? Put some little traces in, then it hit me. None of my content was attached to a taxonomy term. At all.
Tried attaching some of the content to the taxonomy, and bingo, there it was in the menu. Tried checking 'tags' in the vocabulary, and the module wasn't bothered at all, just went right on forward rendering the menu (correctly).
In your situation, you seem to have content in 'Europe', so perhaps that's not the problem here.
This may not be the source of your problems, but it proves something to me. It would be so tempting, particularly for small sites, to upgrade to a taxonomy base (Hurrah! No more link definition, no more multiple page templates (Treemenu has just gained this feature)). But that could be a big effort. This site I'm talking about has about 40 pages of content, all of which would need attaching! I should figure out something to help people there (sometime!). Maybe there is a module...
Comment #10
webel commentedI had the same problem with a free tagged vocab, I applied this fix and it worked.
Left side-bar in http://www.ethicalemarket.com
Thanks.
Comment #11
rcrowther commentedFree tagging - nobody complained after fix, so closing. Rob.