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.
On the ministry pages, there is an "Online Event Registration" link that always shows. It looks like there's some php in the panel that is supposed to show this link only when there are events listed for this ministry, right (I don't have strong coding skills, so this is a guess)? If that's true, then something's not working right - I'm finding that the link always shows, even when there are no events. If it's not true, then consider this a feature request :)
Comment | File | Size | Author |
---|---|---|---|
#2 | openchurch_ministry.pages_default.inc_.txt | 14.25 KB | drupalninja99 |
Comments
Comment #1
drupalninja99 CreditAttribution: drupalninja99 commentedok i need to fix this
Comment #2
drupalninja99 CreditAttribution: drupalninja99 commentedOK I fixed this in the openchurch tarball. I added a visibility rule to keep the upcoming events block from showing when there aren't any events found for that particular ministry.
I am also attaching the specific file I changed that you can use to update your existing install. You will need to rename it from .txt and overwrite the file in your openchurch_ministry feature folder.
Comment #3
drupalninja99 CreditAttribution: drupalninja99 commentedchanging to needs review
Comment #4
michellezeedru CreditAttribution: michellezeedru commentedI replaced openchurch_features/openchurch_ministry/openchurch_ministry.pages_default.inc with the file attached above, and cleared caches. But it didn't seem to change anything - the Online Event Registration link is still showing on all of my ministry pages and I have no events on the calendar.
Comment #5
drupalninja99 CreditAttribution: drupalninja99 commentedOh OK you need to go to admin/build/features and make sure you revert the Openchurch ministry feature, I think that will fix it. I know it works on the fresh instance I tested.
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commentedclosing