Hi,
The block display of Views is fine, but perhaps a "menu" support would be great too, so we can have a menu and submenus with views items.

Thanks

Comments

merlinofchaos’s picture

I don't understand what this would do.

Julien PHAM’s picture

Mmmm will try to explain... I would like a menu that displays as menu items the last 5 entries of a node type. So I created a view with the last 5 items with only the title displayed. And I would like this view to be a menu item. Seems impossible to do.

So I created this view as a block to display it on sidebar, but a block does not behave exactly as a menu, for instance there are addons that change menu behaviour, such as active menu, and this does not work on blocks. And the look is not the same, impossible to have collapsed menu that expand when we click on it, those menu behaviours.

So the goal is to have a menu to the left with a list of node titles.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

ahh. This is unfortunately not possible. Sorry.

Julien PHAM’s picture

Ok. This is technically impossible because of drupal limitations? Or is it too much of a hassle to do?

merlinofchaos’s picture

It's technically impossible due to the menu system very much being its own thing. The only way to do it would be to actually create menu items, which is a very different thing.

mcfilms’s picture

So I am clear: Views2 is only capable of "hard coding" a menu item. Correct?

In other words, if you will eventually have 20 main listings in a database, but don't know what they will be called, you can't set up a menu to go to a view of the data associated with each of the 20. Is that right?

I know you can set up a block that lists these 20. Can this block have links to each one's custom view?

Thanks!

And great work on Views2 by the way Mr. Merlinofchaos

merlinofchaos’s picture

Yes, you could create a block which pulls data from the database and creates menu-like links. You could also create a module which pulls data and creates real menu links. Either of these are possible, both require additional coding depending upon how you want to accomplish it.

mcfilms’s picture

Hi Merlin,

Thanks for your reply. I was able to build a block that dynamically populates with my links. The Right column grows as I add entries. It's at:
http://motioncity.com/drupal/

I just posted a reply on another active thread in this regard at:
http://drupal.org/node/134301

I certainly don't want to take away your time, and impede further Views development. But if you know anyone interested, I posted a bounty for this module and I bet someone else in that thread will too.

Thanks!