Accessing Menu within a View - is it possible?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by i.chris.jacob on May 29, 2009 at 7:43am

Looking to create a view that displays all Nodes not assigned to a Menu.

Wondering if this is possible, and if not how it could be achieved in a "Viewsy" kinda way ;-).

Categories:

Comments

Theoretically it'd be

Posted by archard on May 29, 2009 at 5:19pm

Theoretically it'd be possible to write a module that exposes data from the menu_links table. You could create a filter handler that first selects the link_path field "WHERE link_path LIKE 'node/%'". Then you can do some string trickery to get all those node ids in an array. Then you can set your filter to select all nodes from the node table where the node id isn't in your array. Not sure exactly how it'd be done in the code, but that's the general idea.

Cheers

Posted by i.chris.jacob on May 31, 2009 at 11:19pm

Thanks archard for giving me a plan of attack ;-)

If anyone else wants to bout in with another approach I'm all ears.

I've asked around about

Posted by Renee S on July 6, 2009 at 6:43pm

I've asked around about something like this for about a year with no luck... There used to be a module for 5.x, but there isn't one for 6.x. This just seems like a natural, a common use-case to have a thumbnail view and teaser, for example, for each sub-topic in a menu... a simple views filter would do that. I've been using Node Hierarchy for this, but it's a huge pain in the butt to basically duplicate the menu structure in a third-party module when it's sitting right there in the menu_links table already!

found it !

Posted by Renee S on July 9, 2009 at 5:39pm

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /