/events//registrations/add

| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3129533-12.patch | 1.05 KB | aritrika.d |
| #10 | 3129533-10.patch | 1.1 KB | aritrika.d |
| #7 | 3129533-7.patch | 1.28 KB | aritrika.d |
| Screen Shot 2020-04-21 at 8.00.35 pm.png | 52.7 KB | the_glitch |
/events//registrations/add

| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3129533-12.patch | 1.05 KB | aritrika.d |
| #10 | 3129533-10.patch | 1.1 KB | aritrika.d |
| #7 | 3129533-7.patch | 1.28 KB | aritrika.d |
| Screen Shot 2020-04-21 at 8.00.35 pm.png | 52.7 KB | the_glitch |
Comments
Comment #2
owenbush commentedThanks I'll look into this.
Comment #3
the_glitch commentedAny news on this one?
Comment #4
owenbush commentedNot at this time.
Comment #5
cluke009 commentedPosting to help any others that want the title on their registration pages.
You need to get the event instance entity then the event series entity and from there you can actually get the title.
The getTitle() method didn't work for me but you can grab it from the field value.
Comment #6
the_glitch commentedThank you cluke009. Unfortunately I'm not a programmer so I have no idea which file to paste this code into. Could you explain how to apply this code please?
Could it be converted to a patch then merged with the next version if it passes testing?
Comment #7
aritrika.d commentedComment #8
aritrika.d commentedComment #9
the_glitch commentedThanks aritrika.d. Your patch #7 applied but caused this fatal error.
PHP Fatal error: Cannot use Drupal\Core\Url as Url because the name is already in use in /var/www/html/modules/contrib/recurring_events/recurring_events.module on line 22Comment #10
aritrika.d commentedComment #11
the_glitch commentedThank you. Applied and not causing WSOD but it's printing HTML code in header.
Comment #12
aritrika.d commentedComment #13
the_glitch commentedLooks like it works but I've got other bugs from other things that are stopping me from testing this properly.
Comment #16
owenbush commentedThank you all for the contributions. I had to move the code over to the recurring_events_registration submodule as it was registration specific. I also streamlined the code a little.
This has been merged into the latest dev branch for both 8.x-1.x and 2.0.x
Comment #17
owenbush commented