I created a page view. In the "Menu" section I enabled "Provide menu" and gave "Nwws" as Menu title. It showed up in the "Navigation" menu although my main menu is another one. So problem 1 is that I can't select a "Menu parent" in the "Views/Page/Menu". That would be very helpful.
However ... in "Administer/Site building/Menus" I change the parent item -> worked.
Then (in Administer/Site building/Menus) I changed the the "Title" for that menu item from "Nwws" to "News". Menu changed OK.
But when I checked in the "Administer/Site building/Views" for that page the "Menu title" still showed "Nwws"
It would be great when these parameters would be "linked" so that changes are reflected on both places.
Tell me if I can help in any way.
Comments
Comment #1
merlinofchaos commentedUnfortunately, you have run into a serious weakness in the current Drupal menu system.
Code is unable to specify the parent menu unless it coincides with the path in the URL. So strike 1 -- I simply don't have that capability.
When you change the menu item information, that title got written to the database. So even though Views did tell the menu system about your new title, the menu system thinks you have a customized text for the menu entry, and gives that priority. Unfortunately, I also can't affect THAT information either.
Alas, there is, to my knowledge, nothing I can do about this problem.
Comment #2
joachim commentedWould it be possible at least for Views to detect the menu item has been customized in the menu system admin, and notify the user of this in the settings bit?
Eg:
Comment #3
merlinofchaos commentedCertainly not in Drupal 5. =)
Comment #4
joachim commentedEgad this was for 5! I didn't see that!
I'm seeing this in latest Views on 6 though -- edit the menu in menu admin, go back to views and the changes aren't there.
Comment #5
aren cambre commentedSubscribe. It's as if Views can only "see" a menu item that it created, and even then it only sees the item in its state when the item was created by Views.
Comment #6
joeebel commentedSubscribe. I've got a view that has 'disappeared' from the menus, regardless of my selection in the 'Menu items entry' settings. I've even deleted that Page view and created a new Page view with the same results. Even though I've selected Normal Menu entry and named it and put it in Primary links, it doesn't show up anywhere in the menus. This is an e-commerce site and it is now dead in the water because this view is a product-line view. There are several other product line views that are working fine, and this one was working fine until it got 'tweaked' out of the menu system somehow.
Comment #7
aren cambre commentedOn #6, what if you just manually created a menu entry pointing to the view?
Comment #8
joeebel commentedThat's exactly what I did. But it's a hard sell to a client that it doesn't work like it should... I did give instructions on how to do just that, but it seems more of a workaround than a fix. To be honest, it's hard to say how many gyrations the client did to get it to that state in the first place!
All in all, though, I love the Views module and this is the only real issue I've run into.
Comment #9
niklp commentedAFAICT this is still an issue in the latest release of Views 2. I can see multiple entries in menu_links for the same path, so I imagine I ought to delete one, but I don't know which...
Comment #10
Letharion commented@merlin
Since Views can't do much about the menu system, I'm making this a feature request, and assigning it to you so you can determine if this is something Views should handle.
Comment #11
merlinofchaos commentedIf someone wants to work on this, I will consider patches. I am not, however, interested in working on this one myself. The menu system is a bit of a sticky wicket and trying to keep exported views in sync with the real menu system doesn't sound like an easy task to me.
Comment #12
iamjon commentedClosing from a lack of activity. Please feel free to reopen.