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.
This module is perfect. It basically does what I want, but the wrong way :-\
Does anyone know if it's possible to have an inverse option on this module, so that:
If I have a CCK field that isn't empty (named 'info_body' - a recursive field, so I can't use a re-write in this instance), I can add field above (named 'info_title') using this module that will only display content if the other field 'info_body' has something in it?
Thanks,
Craig
Comment | File | Size | Author |
---|---|---|---|
#4 | views_ifempty-reverse-1554080-4.patch | 3.09 KB | benclark |
Comments
Comment #1
pcambraInteresting, we could add a "negate" option :)
Comment #2
craigperks CreditAttribution: craigperks commentedIf you could that would be great :)
Comment #3
tr33m4n CreditAttribution: tr33m4n commented+1 for negate, subscribe
Comment #4
benclark CreditAttribution: benclark commentedI put together a patch for a "reverse" function. If I could get someone to review this, I'll commit it to the 7.x-1.x branch. The behavior is as follows:
If I've misunderstood the use case or the meaning of the inverse/reverse request, let me know.
Comment #5
benclark CreditAttribution: benclark commentedComment #6
pcambraLooks good!
Comment #8
benclark CreditAttribution: benclark commentedCommitted to 7.x-1.x branch.
Comment #9
P2790 CreditAttribution: P2790 commentedThanks Ben, really helpful