Hi everyone,

I've been combing the Internet (and drupal.org) for a solution to this issue for the past two weeks. I apologize if I'm not searching correctly and if this has already been answered - seems like a simple issue but I just can't figure it out and find any help online that would point me in the right direction.

I have a Page view set up which displays abstracts of the latest published nodes across the entire site. I'd like to create a block view which, in this case, creates a Gmap that marks the displayed nodes in the Page view. The block would be displayed in the sidebar of the page view.

I'm pretty stumped at what PHP argument to use to do this. I tried deconstructing other views (like the Gmap-supplied Location Map view), but no luck. I'm also trying to make other views which make use of currently displayed nodes using views other than Gmap, so any solution would be very valuable.

Comments

obiwankaynobi’s picture

Let me know if I'm in the wrong place asking for this advice. Still can't find a solution.

dawehner’s picture

If you have a look at the issue queue, you will find the answer, that noone has answered you. People are freaking out filling the issue queue with duplicate or silly issues.

You problem is not as easy as you think. You would have to store the results of the page view and in your block, you would have to get this stored values and use them as argument.

merlinofchaos’s picture

Status: Active » Fixed

In your argument call $view = views_get_page_view() -- the raw data to work with should then be in $view->result

obiwankaynobi’s picture

Thanks so much merlinofchaos!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.