Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Details:
- Added an entity ref field Organizers that references Users
- form alter that will default the Organizer field to the current user on node creation/edit, if the Organizer field is empty
- hook_update_N that updates all existing Events to fill out the Organizer field with the event's creator
- added a view for Organizers, and put that view pane in the Events panelizer config
- slight change in logic for adding event creator as an attendee by default
One slight tweak here is that we shouldn't display the text of the contributors' names in order to be consistent with other listings of user avatars. Ideally, we'd use the same hover treatment we use on the group teaser, which is achieved with some Views field rewriting. Otherwise, removing the usernames would be sufficient.
Comments
Comment #1
jpontani commentedComment #2
jpontani commentedCommitted to dev.
Details:
- Added an entity ref field Organizers that references Users
- form alter that will default the Organizer field to the current user on node creation/edit, if the Organizer field is empty
- hook_update_N that updates all existing Events to fill out the Organizer field with the event's creator
- added a view for Organizers, and put that view pane in the Events panelizer config
- slight change in logic for adding event creator as an attendee by default
http://drupalcode.org/project/commons_events.git/commit/37c24de
Comment #3
japerryworks pretty well for me, just needs some theming love:
Comment #4
ezra-g commentedThanks, jpontani!
One slight tweak here is that we shouldn't display the text of the contributors' names in order to be consistent with other listings of user avatars. Ideally, we'd use the same hover treatment we use on the group teaser, which is achieved with some Views field rewriting. Otherwise, removing the usernames would be sufficient.
Comment #5
jpontani commentedCommitted to dev.
http://drupalcode.org/project/commons_events.git/commitdiff/d739dd0
Comment #6
Zarabadoo commentedThis should get the styling in line: http://drupalcode.org/project/commons_origins.git/commit/0f80567