Recurring event sessions
1 February 2025
The issue: Smart date module lets you set recurring events but does not let you add specific text/ images to each individual session Sometimes like with Book Club it is enough to simply put next book image on. But there is now a way…
Firstly lets install required modules via Cpanel Terminal
composer require --ignore-platform-reqs 'drupal/smart_date:^4.2'composer require --ignore-platform-reqs 'drupal/date_content:^1.0@alpha'
Once enabled go to
/admin/structure/date_content_types/session/edit/fields > add image field (put at top)
/admin/structure/types/manage/article/display > Date field > Enabled Date Augmenters
.date-content-entity {display: block;}
.date-content-entity .field:not(:last-child) {margin-bottom: 0;}
.date-content-entity .field--name-field-image {margin-top: -30px;}
.date-content-entity .image-field {margin: 0;}
.ui-widget-content .field--type-image{max-width: unset !important;float: none !important;padding-left: 0px !important;}
.recurring-output--wrapper .details-wrapper li:not(:first-child) {display: none;}
.toolbar-vertical .recurring-output--wrapper .details-wrapper li:not(:first-child), .toolbar-horizontal .recurring-output--wrapper .details-wrapper li:not(:first-child) {display: block;}
.recurring-output--wrapper details {margin-left: -20px;}
.recurring-output--wrapper time {font-size: 0.7em;}
.recurring-output--wrapper time .smart-date--date {font-size: 1.5em;}
see also https://www.youtube.com/watch?v=GtYkPKqnWp0
Add new comment