I have three views that are set to be pages and show full nodes of flexinodes. The views themselves work fine. I have them set to do the menu as tabs across the top and that was working fine. I’m doing a lot of re-arranging on this site and at some point the tabs stopped working. The views still show up fine when I go to each URL, but the tabs are gone.
I think, but haven’t been able to confirm, that it has something to do with me adding the views to the main menu. I’m using the nice_menus module and I have a menu item that goes to the base page and three subitems for each view. The reason I suspect there’s some sort of conflict is this:
After giving up on the tabs for the moment, I decided to add titles to each of the pages to make them look better. I added the title to two of the three views and then noticed that my menu had changed by itself. Instead of being set up as I said above, the two views I had made titles for each had its own menu entry and the third was missing. I then added a title to the third view and everything went back to how I had originally set it. So there seems to be some interaction between the views and the main menu.
Unfortunately, disabling the menu items as well as disabling the nice_menus module did not bring back my tabs, so I can’t confirm that they are the problem. I just suspect the problem is somewhere in there and I did notice the tabs were gone after I had changed the main menu.
I’m attaching all three views in case there’s something helpful in there.
Thanks,
Michelle
| Comment | File | Size | Author |
|---|---|---|---|
| 3views.txt | 5.46 KB | michelle |
Comments
Comment #1
merlinofchaos commentedOk, after some experimentation, this turns out to be a bug in menu.module and is not related to Views at all.
To reproduce:
1) Pick any URL that leads to a tab on your Drupal system. I chose user/search because it's easy -- obviously, you have to have search.module enabled.
2) Enable menu.module. Go to menu.module and add 'user/1/search' as a menu item.
3) Go to user/1/search. Note the lack of tabs. Go to user/1. Note the 'search' tab is gone.
Comment #2
ultraBoy commentedTo merlinofchaos : Sorry, are you sure about path "user/search"? I don't have this path at my site. Instead, I have "search/user"...
Comment #3
merlinofchaos commentedPick any URL that leads to a tab on your Drupal system
It doesn't have to be the same one I picked. Maybe I meant search/user =)
Comment #4
jvandyk commentedLocal tasks must be children of the path you are visiting.
user/1 has several local tasks, like user/1/edit and user/1/view.
user/1/search has no children, and thus no local tasks. From the menu system's standpoint, there is nothing to display.
Comment #5
rivena commentedIs there any fix for this?
I am not sure what the alternatives are, if you can't link to a tabbed view from the menu.
Anisa.
Comment #6
ricabrantes commentedany news about this?
Comment #7
pwolanin commentedThis is not relevant to the D6+ menu system, and seems to be by design