Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Smart Date add-on To Be Confirmed (TBC) option

No security coverage Maintenance fixes only 3 sites

This module allows you to create events with an approximate or unknown start time, displaying "Time TBC" to the public. You can later update the event with the confirmed start time. It requires the Smart Date module to function.

Note: this module is an add-on to Smart Date, providing a small but useful extension to functionality. Therefore, smart_date is a dependency and its installation is required.

This means that you can create a future event further into the future, when you have the specific date, but don't yet know the start time. You can then go back and edit the event to update the time.

You want to promote an event, to help ticket sales, perhaps giving approximate or expected start times, e.g. evening in a free-form description.

As time advances a little closer to the event and things are firmly put in place, a start time can be confirmed - and at that point, you can go back and edit to put in the actual start time.

Features

Works on a presentational basis: Uses an existing date TBC toggle boolean flag field called field_time_tbc in your node type to auto-fill time start and finish with 00:00 but hide them in the content displayed to the public.

This module was created for the website I built for the choir I am in: from time to time, events would be booked without all the information as to confirmed start time available to me as web content admin or that the time as still being determined by event management team.

Post-Installation

Create the boolean field in your content type first, field_time_tbc.

e.g. for an "Event" content type, add the time_tbc field here:
admin/structure/types/manage/event/fields

Then install...
composer require drupal/smart_date_time_tbc

.. and enable this module...
drush en smart_date_time_tbc

And add the following code to your node templates in your theme

e.g. node--view--events--events-listing.html.twig

      {# other twig code here...#}

      {% set date_event_day_only = date_event_as_unix_time_int | date('D, j M Y') %}

      {% if node.field_time_tbc.value %}
        <span>{{ date_event_day_only }}, Time TBC | </span>
      {% else %}
        <span>{{ content.field_when }} | </span>
      {% endif %}

      {# other twig code here...#}

e.g. node--event--full.html.twig

          {# other twig code here...#}

          {% set date_event_day_only = date_event_as_unix_time_int | date('D, j M Y') %}
          {% if node.field_time_tbc.value %}
             <span>{{ date_event_day_only }}, Time TBC | </span>
          {% else %}
            <span>{{ content.field_when }} | </span>
          {% endif %}

          {# other twig code here...#}

(note: the above twig code could be replaced with a better implementation to use field formatters - issue raised here: https://www.drupal.org/project/smart_date_time_tbc/issues/3457462 )

Turning on the Time TBC field in your content of type Event that you are creating - e.g. node/add/event or editing e.g. node/78/edit

On that Event create or edit page, how this looks:

Initially off:

Turning on:

Note how it it auto-fills the time start and end, so that saving the content goes through. This is done by the JS code in the module.

How it looks on saved published content as an example:

Additional Requirements

Requires smart_date, because it extends it.

Not known.

Similar projects

Not known.

Supporting this Module

Not specified at this time.

Community Documentation

See information above.

Drupal 9–11

Ask your assistant about Smart Date add-on To Be Confirmed (TBC) option

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jun 2024
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 9–11 Sep 11, 2026
1.0.1 Stable Sep 11, 2026
1.0.x-dev Dev 9–11 Jun 26, 2024