Menu Trails does not work on my site.
I have made a lot of tests, no chance to get it work.
How can I find out what the problem is?
Menu Trails does not work on my site.
I have made a lot of tests, no chance to get it work.
How can I find out what the problem is?
Comments
Comment #1
alanburke commentedThe documentation included in the download, shows a piece of code that has to be added to your template.php file.
Did you add that?
Alan
Comment #2
Anonymous (not verified) commentedWhile I cannot say that this project is not working under my under my setup, I don't think it's working right.
On my
D5.1install runningmenutrails.moduleI have a horizontal Primary links menu ('Site menu'), as tabs with hierarchy. 'Site menu' is also set as my Secondary links menu. When I click onto a primary link the next page load will present the additional secondary links below the primary links (pretty standard, I believe it's exactly whats pictured in the sample screenshot).Here is my 'Site menu' structure:
Let's take a look at the 'Fruit' link and it's children. When a user would click on Fruit > watermelon and then a node under that taxonomy, I needed Fruit > watermelon to stay active as they get deeper into the watermelon taxonomy. Perhaps the Watermelon taxonomy also has several child categories, watermelon would still have to stay active.
This is where
menutrails.modulecomes into play. It was able to take care of all of that for me without a problem. Oddly enough, I didn't input the installed snippet into mytemplate.phpand yet it seemed to be working fine.Then I was testing Community > Forums. I had set the variables for the
Menu trails by category: Forumsin the menutrails settings admin to keep the Community > Forums link active under each category in the forum. However, no luck. I figured maybe a situation like this is where I needed to input that snippet. So I did just as it is in the documentation:That didn't change anything, the module did not lose or gain any functionality. It later threw an error when I had to install another
_phptemplate_variablesnippet so I merged it with that so it now looks like:I really have no idea if this is right, or if I needed to do anything additional to the snippet when I installed it. For example, I do not know what the number means at the end of
menutrails_primary_links(1)as I know just enough PHP to get by. Is it the menuID or is it nothing that needs to be changed or what.So my questions are:
1. Why was this script working as advertised without adding the snippet?
2. What do I have to do to the snippet when I insert it into a BLANK template.php?
3. Why does it not work with the forums? (I assume something to do with the snippet)
Please let me know at your earliest convenience.
Thanks in advance!
Comment #3
drupalfan2 commentedOf course I have added this peace of code to my template.php.
How is it possibe to get an quick solution?
Comment #4
joshk commentedDrupalFan2: without more information, there's no way to tell what's going on with your installation.
Comment #5
joshk commentedThe theme snippit simply adds the "active" class to more of your menu items (the active trail). Depending on your CSS, this may or may not have any effect.
You should put it in a brand new _phptemplate_variables() function. Here's the API reference for that: http://api.drupal.org/api/function/_phptemplate_variables/5
In terms of getting it to work with forums, it depends on the logic of your site. Do you want to categorize by node type (e.g. all forum nodes fall under the forums), or by forum categories (which would require more menutrails rules). I think that's the issue, but without a look at your exact settings and site, I couldn't tell.
You should note that forum category pages will not be affected by menutrails. It only works on nodes (e.g. node/123).
It's also possible, although somewhat unlikely, that you have some other module which is also using menu_set_location() for forum posts which is overriding menutrails.
Comment #6
vegardjo commentedHello, any updates on this?
I have the exact same problem as txcrew.. Menu Trails works perfectly for every node type except the forum nodes. Adding the snippet (replacing the one that was there for the Garland theme) didn't do any difference (it works without it, and it works with it).
I've tried to configure menu trails to have all forum node types fall under my forum tab, and also tried to have all forum categories fall under that tab. I've tried both at the same time, and I've tried them separatly, but no change..
Strange thing, and some extra info: the breadcrumbs show me:
Home › Forums › My forum container for the list of forum topics within a container, which is correct, but when I go in to an actual forum topic (the node) the crumbs shows this:
Home › Primary links › Forums
All help appreciated!
Comment #7
sunSorry, Menu Trails for Drupal 5 is not actively developed/maintained anymore. Only issues containing patches may still be considered. Feel free to re-open this issue if you want to provide a patch.