Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As seen in the screenshot, using one view with different arguments makes the menu selector unusable. Is there a good reason to replace the menu title in the first place? This is also a problem on the admin page (/admin/structure/menu/manage/main-menu).
Comment | File | Size | Author |
---|---|---|---|
Schermafbeelding 2013-03-04 om 16.44.43.png | 17.84 KB | markwittens |
Comments
Comment #1
markhalliwellWould you prefer them to be completely blank? The way views are inserted into the menu system, the menu item technically does not have a "title" to begin with. By default, the workflow for what is displayed here is as follows (from: http://drupalcode.org/project/menu_views.git/blob/refs/heads/7.x-2.x:/me...)
1. Use an overridden title set in the menu view options, if it exists.
2. Use the view's title, if it exists.
3. Construct a title using the view name and display (ie: product_views-block2).
While, granted, this generally is a solid workflow I can see how having the same view titles would be confusing. Personally, I don't see how having that many menu views is really useful, but I suppose an administrative title should be added for special use cases like this.
Comment #2
markwittens CreditAttribution: markwittens commentedTo me this seems very simple: Before I attached the view to the menuitem the menuitem had a title, after it was attached it did't. So no, I don't prefer it to be blank, I prefer it to have the title it had before so users can find it in the structure.
Comment #3
markhalliwellI understand it seems like it should be simple, but believe me when I say it's not. There was already a mass amount of confusion and feedback when I first came out with this module on how to simply get it to work. Which is how the toggling of a "link" or "view" came about in the 2.x branch, see: http://drupal.org/node/1853262. This method of separating the menu link settings from the menu view settings ensures that one can easily fall back to the original link (complete with the original title and path). So simply hi-jacking the link title is not an acceptable solution as Menu Views does not do by design. For that reason, I am marking this as a feature and not a bug.
That being said, I am willing to create an administrative title (in the menu view settings) for areas like the menu overview form and menu hierarchy drop-downs. In theory, this administrative title would pull in the link title, by default and if available, or fallback to the view ID and display ID as identification.
Would this be an acceptable solution?
Comment #4
markhalliwellBetter solution as these displays should have unique names to help differentiate between them.
Comment #5
markhalliwellFixed in commit: ef42b6a.