Node reference to views page instead of content type?

Paracetamol - May 28, 2009 - 14:06

Hello!
I've figured out how to make user defined context sensitive blocks on my page for several ocassions; it works out fine by:

- offering (in my case 2) content types with a reference field to pages, stories, gallery pages etc.
- generating a block view to display those nodes as blocks on the corresponding pages

Problem:
- Several of my main pages are but views pages; I can't seem to make the node reference field choose those page views (though they probably have a node ID the argument could relate to). The node reference field configuration only allows for content types.

- Is there a possibility to easily reference a page view over a normal select field?

I know I could just configure fixed blocks to display on said views paths, but that would unnecessarily clutter my system.

Embed the view inside a node

choster - May 28, 2009 - 21:17

A view is not a node, and would not have a node ID that the nodereference module could store. What you can do is insert a view inside a node, then point to the containing node.

http://drupal.org/project/viewfield
http://drupal.org/project/insert_view
http://drupal.org/project/viewreference

 
 

Drupal is a registered trademark of Dries Buytaert.