Child pages
  • Add time support for promo block scheduling [5.3.0-B1]
Skip to end of metadata
Go to start of metadata

The promo block functionality allows to create zones on website (called "promo block groups") and associate banners (called "promo blocks") with each zone. On of the features, that is supported right now is called promo block scheduling. To use it administrator needs to specify either of fields below:

  • date, when promo block should automatically appear on website
  • date, when promo block should be automatically hidden from website

The above functionality works great, but it lacks the ability to show/hide promo blocks in the middle of the day for example.

Solution

  1. don't clear "time_format" and "input_time_format" field options for "ScheduleFromDate" and "ScheduleToDate" fields
  2. add "picker_default" field option with "midnight" value to the "ScheduleFromDate" field (will work only after is Allow specifying default value for date/time picker [5.3.0-B1] implemented)
  3. add "picker_default" field option with "midnight +1 day -1 second" value to the "ScheduleToDate" field (will work only after is Allow specifying default value for date/time picker [5.3.0-B1] implemented)
  4. use two "inp_edit_date_time" controls (one for each field) for specifying scheduled date
  5. create migration SQL, that would add "23:59:59" (in seconds equivalent) time to the "ScheduleToDate" field of existing promo blocks, that have this field populated

Related Discussions

Related Tasks

INP-1532 - Getting issue details... STATUS

1 Comment

  1. Sponsored by rRPI22240.