The other day I was in deep sleep and then came a thought: wouldn't it be great if the Views module > Page fieldset > Menu sub-fieldset showed the break down of the Menu system just like creating/editing a node?

Then we can specify where the page is placed without having to backtrack by readjusting and moving views generated menu items around via menu admin page.

Am I the only one dreaming this? Surely the menu nightmare needs to stop?

Comments

merlinofchaos’s picture

That would be great, but it's not easily doable. It's not impossible, but the reason it works for node is that it's entering the data directly into the database. Views uses the hook_menu structure, which doesn't allow you to set the parent for the menu item, unfortunately.

karl sf’s picture

If I understand you correctly you are suggesting that views menus function like an actual directory structure?
Would this also affect the breadcrumbs?

merlinofchaos’s picture

Theoretically Drupal's menu system should provide a breadcrumb trail. If you create your view as 'foo/bar/baz' and there is a 'foo/bar' then I believe that Views will automatically be placed under 'foo/bar' in the breadcrumb structure.

Drupal's menu system is a little crazy =)

BioALIEN’s picture

Correct, this will not only place the views item in the right menu tree but also generate the breadcrumbs automagically.

Well merlinofchaos, just wanted to put my idea forward as I think its a big help. Let's hope it will be possible with the new menu system for D6?

moshe weitzman’s picture