I've been struggling with this for a while and can't seem to find the answer anywhere.

I'm trying to get multiple arguments / contextual filters to work in a Views Pane. I've got some kind of result in a Page View and just wondered if this is by design?

I've created two contextual filters in the pane:
Content:created year and month
Content:has taxonomy term id

When previewing, I can only get the first argument to work. /date gets nodes with the specified year/month and /termId gets node with the taxonomy id (but ONLY if that filter is listed as the first contextual filter).

all/termId gets no results. Is this normal in a Views Pane? It seems to work fine on a Page View.

What I actually want to achieve feels simple but is perhaps not possible:

I want to have two contextual filters as above, but both being the first argument! So /termId and /date will list nodes that fit the criteria. I want the filters to work as an OR filter rather than an AND filter.

I've created a taxonomy block and a date block that create the right paths (/date or /termId). I eventually want to get this to work through Panels but I think my approach may be entirely wrong.

Any guidance or suggestions would be greatly appreciated.

CommentFileSizeAuthor
#2 view.txt22.93 KBdjh007
#2 panel.txt4.28 KBdjh007

Comments

merlinofchaos’s picture

How do you have the pane configured to get the arguments from Panels?

Maybe you should export one of the views and the panel so I can look.

djh007’s picture

Title: Multiple arguments in a View Pane possible? » Multiple arguments in a View Pane from Panels?
Priority: Normal » Minor
StatusFileSize
new4.28 KB
new22.93 KB

Thanks for offering to look at the view export :) After rebuilding the entire view last night, the pane seemed to work pretty ok.

I still think my logic is off since things are a bit messy with my View pane and panel. It's no big deal, but I get an unwanted parameter in the path - '/all'. There's a good chance I'm approaching this entirely wrong, or simply expecting results which are not possible, but here's what I've done...

To summarise, I've made two blocks in a Views archive. They have contextual filters set as:
Block 1: Date: this has a path of 'blog' and generated the argument /year-month (eg: blog/201102)
Block 2: Taxonomy: this has the path 'blog/all' and generates the argument /TermId (eg: blog/all/whatever)

I've had to add the 'all/' to the taxonomy contextual filter path, since I can't figure out how to make blog/TermId work when there is another argument (date) present. I'm hoping that either blog/term OR blog/date will list the right nodes!

It's kinda hard to explain so I have attached an export of a View and Panel. I'd love to be able to understand a better logic if / when you have time to take a look.

kars-t’s picture

Priority: Minor » Normal
Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)

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