Panels 3.2 and arguments

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

I am new to Panels, and completely confused at this point. I'm trying to set up a landing page using Panels that consists of three views. These views all accept a tid or multiple tid's as arguments. I cannot seem to figure out how to pass in the arguments from my panels page to my views.

I created a panel page and set the path to be "classes/%". When I view the page, the url becomes "classes/%25". If I try to go to "classes/2162", I get a page not found.

I can't seem to find any good documentation regarding how to set this all up, and would love some advice.

Thanks in advance!

-Erich-

Comments

Set the URL to classes/%term.

merlinofchaos's picture

Set the URL to classes/%term. Update the page. On An 'arguments' option should appear on the left. Go to that option, and assign the argument to a Term ID (or term(s) ID) context.

Then, when you add your views to the content, be sure to assign that context to the argument.

That did the trick. Thanks

ebeyrent's picture

That did the trick. Thanks Merlin!

Similar but with CCK

bstoppel's picture

I am trying to achieve something similar to this except using passing a cck field to the views.

Here is the URL format that I'd like to make work

htt://mysite.tld/school-programs/5th

where school-programs is a constant and 5th is an argument that is passed to the view. 5th should refer to the field_grade_level CCK field.

The page is set up as a panel and works with the views when no argument is passed.

I've tried numerous combination but can't seem to find one that works. I've tried %, %field_grade_level, %grade_level, %grade in the "URL path settings" of the panel page. In every situation the % sign gets converted to %25. I am using Pathauto (automatic alias), but it is turned off for this node.

I've edited the "Settings" of the "Panel Content" to "Send arguments" to "grab an argument from the url" by trying both %0 and %1. I've even tried "Override URL" but didn't really no what to put there. I have not edited the "context." It is set to "no context."

Could someone please help clarify how to set this up properly? Many thanks.

I'm running into this too...

greenbeans's picture

I'm running into this too... I followed Merlin's instructions with no luck. (Where is this "arguments" option supposed to show up, btw?) It's entirely unclear to me how this is supposed to be configured.

EDIT: Apparently in order to use arguments, one has to enable the Page Manager CTools plugin (which is NOT immediately obvious) and create a custom page with a single variant and %term as the argument.

Panels

Group organizers

Group notifications

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