Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2008 at 16:39 UTC
Updated:
11 Feb 2009 at 10:08 UTC
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
Comment #1
merlinofchaos commentedI don't understand what this would do.
Comment #2
Julien PHAM commentedMmmm 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.
Comment #3
merlinofchaos commentedahh. This is unfortunately not possible. Sorry.
Comment #4
Julien PHAM commentedOk. This is technically impossible because of drupal limitations? Or is it too much of a hassle to do?
Comment #5
merlinofchaos commentedIt'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.
Comment #6
mcfilms commentedSo 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
Comment #7
merlinofchaos commentedYes, 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.
Comment #8
mcfilms commentedHi 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!