Passing Date argument to panel pane

Events happening in the community are now at Drupal community events on www.drupal.org.
Zinz's picture

Hi,
I have this problem. I have two views witch has two Panel pane display, both with
this argument Node:created year. I have also a panel page than contains these
two Panel pane: how can I pass argument?
thank's, sergio

Panels 6.x-2.0-alpha3
Views 6.x-2.8

Comments

blg@bgreenaway.com's picture

Here's a solution, assuming your Panels/Views/Arguments structure was similar to mine.
When content is pulled from Views by Panels(Page Manager) the arguments can be passed from the URL query string Iff they are established as Arguments in the path /my_page/%arg_query_string or /my_page/!arg_query_string. Contexts are then applied to the arg_query_string part from those available to Panels so that the proper structure is meaningful by the time Views get them.

Look at the Settings panel for your view (on the content panel in Page Manager) because it SHOULD be offering you a select box for Contexts as Arguments. And hopefully one of the built in options will line up the query_string for your view. (Sometimes swapping between contexts and depending on the View you can pass things that neither really expect as arguments because Contexts makes available some additional terms for your parameters, but I've yet to try this with the Date stuff)

Assuming your trying to get a parameter through via the query_string (most cases would).

Hope this helps.

of course, the alternative might be that in that same settings panel you force a particular argument through if you check the 'Pass Arguments' option and write one in :)

Panels

Group organizers

Group notifications

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