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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markhalliwell’s picture

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

markwittens’s picture

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

markhalliwell’s picture

Assigned: Unassigned » markhalliwell
Category: bug » feature

I 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?

markhalliwell’s picture

Title: Menu title should not be replaced in interface » Add view display name to views in menu parent dropdowns

Better solution as these displays should have unique names to help differentiate between them.

markhalliwell’s picture

Status: Active » Fixed

Fixed in commit: ef42b6a.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.