Multiple Value CCK Field as Context Relationship

public
group: Panels
failedvagabond@... - Tue, 2008-08-26 19:50

Hi.

On a panels_page, I'm trying to pass the values of a Nodereference CCK field with multiple values to a panel_view, using a Relationship in the context system.

The nodereference relationship only seems to support passing the first value to the view. Looking at other relationships (term_from_node, user_from_node, etc) they all seem to pass only one object.

I'm surprised that I've been unable to find a plugin that supports passing multiple values. I'd be pleased to write one, but I'm wondering if I've not found a plugin because I'm missing some larger limitation of the context system.

From what I gather, I'd have to write a new context plugin (say, 'nodes' instead of just 'node') and write a relationship to handle this.

I'd then have to figure out a way to get views to receive multiple nids, which means either
1) serializing the nids and writing a views argument to accept, unserialize and them
OR
2) writing a panels content plugin to manage the passing of data from my panel to my view

or perhaps something else.

Am I way off-base here? Any advice or guidance would be very much appreciated.

Panel Style

gordon's picture
gordon - Wed, 2008-08-27 01:22

Hi,

it is sort of possible.

Basically you need to use a view, and then you can use panel_style http://drupal.org/project/panel_style which will allow you to pass each node to the mini panel and can be displayed.

it will only allow you to place the each node within the simple pane of the mini panel.

--
Gordon Heydon