Closed (fixed)
Project:
Popup filter
Version:
6.x-2.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Oct 2009 at 20:47 UTC
Updated:
2 Dec 2009 at 23:51 UTC
Is it possible to specify a view with arguments? If so, how?
Comments
Comment #1
Scheepers de Bruin commentedNot out of the box. You can fake it, however:
where $args is a keyed array containing your arguments.
Comment #2
MadOverlord commentedThanks for the quick reply. But might I suggest that you consider adding such functionality? It would permit a lot of interesting things without the mess and security issues that come along with PHP.
Comment #3
pimousse98 commentedHi, I am trying a combination of what is described in this post and this: http://drupal.org/node/606956
-- in essence I have a table view with views_customfield and am trying to show a link to comments that shows a view of the most recent comments for the node as a popup.
The view is called "publication_comment" and takes NID of the node as an argument. One of the displays is a page -- assuming I have to use "page_1" which is its identifier.
I end up with code somewhat like:
I get the following error, which sounds like basic php: Parse error: syntax error, unexpected $end in ....popup_filter.module(322) : eval()'d code on line 1 - any input?
Since customfields allow full php, is there a more graceful way to do that?
Thanks
Comment #4
Scheepers de Bruin commentedUntil I get a chance to add view arguments to the popup markup as MadOverlord suggested, write a php function to wrap all that, and then you may call the function from within the php argument...
Comment #5
Scheepers de Bruin commentedYup, it is in v3, thanks for thew suggestion!