Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have a textfield in my node for Skype username. In the views exposed filter I would like to add a radio for:
Skype (o) available ( ) not available ( ) no preference
This will allow filtering the views with nodes that either have the skype username field filled out, does not have skype username filled out, or all nodes with/without skype username.
Is this something that may be considered?
I believe it would add greater flexibility to this AWESOME module.
Thank you very much in advance!
Comment | File | Size | Author |
---|---|---|---|
#9 | exposed_EMPTY_NOT_EMPTY-950312-4.patch | 634 bytes | Deciphered |
#4 | exposed_EMPTY_NOT_EMPTY-950312-4.patch | 634 bytes | Deciphered |
Comments
Comment #1
Bilmar CreditAttribution: Bilmar commentedChanged title. This is to filter out users that do not enter a value into the optional textfield in the node edit or filter out users that do enter a value into the optional textfield in the node edit.
Hope this draws interest =)
Comment #2
mikeker CreditAttribution: mikeker commentedClearing out the issue queue... Sorry for the long delay.
I think this would be a good addition to exposed filters. Essentially, we want to look at a text field and have options for "is null", "is not null", and "either" with customizable text for each.
Unfortunately, I'm trying to get a 6.x release out and want to try and concentrate new features in the 7.x branch with occasional backports to 6.x. As such, I'm bumping the version number but keeping this issue active for later consideration.
Again, sorry about the long wait...
Comment #3
TinaRey CreditAttribution: TinaRey commentedHey there, what if I want to expose a filter for a text field with "is not null"? I would expect a checkbox to turn up but instead there's nothing. Any way I can get my checkbox without including another boolean field in the content type?
Comment #4
Deciphered CreditAttribution: Deciphered commentedAttached patch, in combination with the patch at http://drupal.org/node/477984#comment-6073924 will provide support for exposed 'Is empty' and 'Is not empty' operators.
Comment #6
Deciphered CreditAttribution: Deciphered commented#4: exposed_EMPTY_NOT_EMPTY-950312-4.patch queued for re-testing.
Comment #7
Deciphered CreditAttribution: Deciphered commentedOops, Issue is against the wrong branch, hence failed test, let's try that again.
Comment #9
Deciphered CreditAttribution: Deciphered commentedSame patch, but uploading against 7.x-3.x in case that helps fix the issue.
Comment #10
jkopel CreditAttribution: jkopel as a volunteer and commentedif you are still out there and would like this to happen feel free to open a new ticket against D8, sorry!