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

CommentFileSizeAuthor
3views.txt5.46 KBmichelle

Comments

merlinofchaos’s picture

Title: Lost tabs on view page - menu related? » tabs disappear when using menu.module to add menu links to the tabbed pages
Project: Views (for Drupal 7) » Drupal core
Version: 4.7.x-1.x-dev » x.y.z
Component: Miscellaneous » menu system
Category: support » bug

Ok, 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.

ultraBoy’s picture

To merlinofchaos : Sorry, are you sure about path "user/search"? I don't have this path at my site. Instead, I have "search/user"...

merlinofchaos’s picture

Pick 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 =)

jvandyk’s picture

Local 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.

rivena’s picture

Is 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.

ricabrantes’s picture

Version: x.y.z » 7.x-dev

any news about this?

pwolanin’s picture

Version: 7.x-dev » 5.x-dev
Status: Active » Closed (works as designed)

This is not relevant to the D6+ menu system, and seems to be by design