Hello, I set up this module and it works great! I am verry happy with it. Manny thanks!
I have a question, the output works as a 'one of..' bud I need a 'is all of'. I thinks it is shortness of my knowledge, i am new to Drupal.

I think is had something to do with the line found in Views under the checkbox 'Allow multiple values ': 'If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'

How can I get the Filter not to give back the string with the '+' sign, but with a ',' sign. Or is there an other solution to solve this issue?

Manny thanks, Marchello

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RdeBoer’s picture

Title: How to set up a 'is all of..' » How to set up a 'is all of...' Global Filter
Assigned: MLZR » RdeBoer
Category: support » feature
Priority: Major » Normal

Hi Marchello,
Glad you like my module. Thanks for the feedback.
I think you hit the nail on the head: the AND filter (comma separated contextual arguments) is not implemented yet. Your are the first to ask for it!
Marking as feature request.
Not sure when I have time to work on it. Patches welcome!
Cheers,
Rik

MLZR’s picture

Hi Rik,

A few months ago I did this post for a AND filter. Maybe you now have any idea whether you will soon come to it?
In a few weeks I start again with the project for which I want to use this module. I hope there is some time for this issue.

Thank you.

anne1960’s picture

Issue summary: View changes

I've tried to make this work with fields, but nothing filters...Am I doing something wrong?
I've also tried it with 2 views. they both have a jump menu. But I have no idea how to set these up. So that doesn't work either. I even enable ajax.
Any help? It would be great, because I think it cold be a great module for me. Unfortunately there are no youtube tutorials on it..

anne1960’s picture

Title: How to set up a 'is all of...' Global Filter » explanation on how to set up the view for view global filters
Category: Feature request » Support request
Priority: Normal » Major

Can someone plese explain how to set up the view for views global filters. I've tried to set up the global filters with fields and views but neither one works....
thank you

RdeBoer’s picture

@Marchello: I may have some time for the AND (as opposed to OR) filter in a couple of weeks

@Anne: have you followed the steps in the README? Or if you have a test system you could send me login details and I can have a look. But please state clearly what you want it to do and let's start with the simplest incarnation of that.

anne1960’s picture

FileSize
320.65 KB
22.46 KB
15.59 KB
28.13 KB
404.23 KB
anne1960’s picture

I have tried to follow the instructions. Unfortunately I do not have the site online yet.
So I am sending you a screenshot.
The visitor needs to choose from a list of provinces and second from a list of categories, then the results would show up. The entire site is basically based on views.
I tried with fields and a taxonomy list..

RdeBoer’s picture

@anne

For your "Filterstuurprogramma" you've selected the second option, which is making things more complicated than necessary. Go for the first option: "Field or node property". Make sure your content nodes have the required Taxonomy Term field.

Global Filters are based on Views CONTEXTUAL filters, not Views REGULAR filters. You seem to have configured a regular filter under FilterCritera. You need to get rid of that.

In your screenshot "screenshot-view_provinces.png" I don't see you have configured a CONTEXTUAL filter in the "Uitgebreid" (Advanced) section of the VIews UI (upper right corner).
See the README:

"3) With the global filters configured, you can now use them as the default
values in Contextual Filters in any number of Views that you want to pass the
global filter values to.
On the View edit page, open the Advanced field-set on the right. Then next to Contextual Filters click Add and select the item corresponding to the global filter source in the previous step."

What do you need this Jump menu for? I suggest you start with a simple table of nodes and see if you can filter that Globally before you then add the category global filter

Do not use AJAX.

anne1960’s picture

FileSize
8.42 KB
12.32 KB
anne1960’s picture

Thank you so much for helping me out...this is rather new to me, and I think it could be a great module for me.
if I understand I have to get rid of my list in my content type and replace it by a taxonomy list? (see 2 new screenshots).
Also I would need to have to show it in 2 languages. Is this possible?

RdeBoer’s picture

Het spijt me, maar dit is erg tijdrovend om uit te leggen...

Je kunt ieder veld in je "content type" gebruiken als een Global Filter veld, een lijst of een taxonomie, beide zijn prima.
Dus kies een veld en maak een Global Filter block voor dat veld.

De cruciale step daarna is dat je dat Global Filter moet verbinden met je View. Je doet dat via een Views CONTEXTUAL FILTER (ik weet het Nederlands daar niet voor) te creeren voor DATZELFDE veld. Je doet dat in de "Uitgebreid" sectie in de rechter bovenhoek van je Views pagina. Probeer NIET een normaal (regular of "exposed") filter the gebruiken. Het MOET een contextual filter zijn. Rechter bovenhoek. Als je datzelfde veld dat je in je Global Filter block hebt gebruikt eenmaal hebt gekozen in de rechter bovenhoek, klik "Provide a default value" en dan zie je de "Global Filter (field or search term)" keuzemogelijkheid. Selecteer dat, zodat je View je Global Filter block gaat gebruiken.

Dat is het.

Voor zover de tweetaligheid betreft... dat zou met Drupal moeten kunnen, maar ik heb daar zelf weinig ervaring mee. Sorry. In Australie spreken we 1 taal, dus we hebben dat probleem niet.

Rik

RdeBoer’s picture

Status: Active » Closed (works as designed)

@marchellodepello: Moving you request to a new feature request: #2208503: Support AND ("all of") filter options in addition to OR filter ("any one of") options.

@anne1960: closing due to lack of activity.