Closed (fixed)
Project:
Panels
Version:
6.x-3.0-alpha2
Component:
Plugins - contexts
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2009 at 11:24 UTC
Updated:
10 Apr 2009 at 22:30 UTC
Hi
I have created a view that takes on argument, a taxonomy term, then created a panel + handler that takes one argument (%term). Then I added the view in the panel handler's content and set the context in the view pane's settings to Taxonomy term. The view doesn't show correctly.
It works when I set the Taxonomy term in the views pane's settings to No context and just pass %1 as argument.
Comments
Comment #1
summit commentedSubscribing, greetings, Martijn
Comment #2
guillaumeduveauI have the same problem, but thanks Miiimooo for the workaround :)
Here's the simplest way to make a panel page taking a TID argument :
- Create a panel page @ panelpageterm/%
- Do not care about the context
- Add a view pane of a view that takes a TID argument and in the pop-up setting, just write %1 in Arguments
Since 6.x-2 will not go out of alpha, I'm closing #316253: Broken arguments : Taxonomy term, Vocabulary ID, Node add form and Node edit because the arguments are not broken any more in 6.x-3.0-alpha2.
Comment #3
guillaumeduveauWell in fact I just managed to add the context to a view pane, so Miiimooo and Summit, could you detail your steps in order to try to reproduce the bug ?
- I created a page at the url paneltermtest/%term
- for the context I click change and put Term identifier
- in the panel content I added a view pane and selected "Term identifier" in context
- that's all and it works...
Comment #4
miiimoooI confirm that it also works for me when I follow those steps. The only difference to the one I reported - as far as I can see - is that mine used the term name and not the term id.
Comment #5
summit commentedHi,Working for me also, thank you!
Greetings, Martijn
Comment #6
Shademan commentedsorry to put this here, but i cant seem to get a panel running with an url argument.
miiimooo wrote, he "created a panel + handler that takes one argument (%term)".
i want to have an url like "http://drupal/region/25" where 25 would be my argument which would then be passed on to a view.
how do i tell the panel that there is an argument? i tried the url "region/%id" but that did not work.
i think i missed something important ;)
would be cool if someone could help me, thanks!
Comment #7
merlinofchaos commentedOk, one important thing -- and I need to fix the way this works so it's more understandable -- is that a taxonomy term context will always pass the TID of the term, even if it came in as a TERM name. That might be the problem you were having.
Shademan: That's a missing feature, in that there isn't a simple string context that can be used for arguments that just get passed through to Views. It probably should be a different issue (as a feature request) from this.