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.
I'm using Views to display fields of an event content type. I created a custom link that allows users to quickly go to the signup form. However, this link is now always shown and does not update when someone has already signed up, allowing multiple signups per person for the same event.
I'd like a link like you have with the content edit and delete link, a prebuilt Views signup link. Which displays 'Sign up' when a user hasn't done this yes, and displays 'Manage your signup' after that. Or perhaps with a field button that allows the link to be hidden when someone has already signed up.
Comments
Comment #1
Pene CreditAttribution: Pene commentedThere is a method which you can use to solve this problem. First of all you have to be user #1. Then go and get Views PHP module, then install and enable. Then go in to your calendar, week etc. view. Add a PHP field into Fields section. Then at the Output code section, insert something like this:
It works for me atm, but there is a possibility that it has some serious bugs. Hope it helps.