Multiple day of Agenda

  • goliarth
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 3 weeks ago #160520 by goliarth
Multiple day of Agenda was created by goliarth
Hi!
how to sove 2 days agenda? I'd like to have headline Day One; hours, title, and headline Day Two: hours, title
Now Agenda let us provide only hours, title and description. But what when event if event has more than one day and we need to sert agenda for each day

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #160528 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Multiple day of Agenda
Hi goliarth

This is, unfortunately, not possible at the moment. I will see if I can improve and support it in the future

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago - 2 months 3 days ago #164906 by MinneMedia
Replied by MinneMedia on topic Multiple day of Agenda
Hello, we currently have an identical problem. Is an approach now established or is a makeshift approach recommended? (EB 4.8.0)

Addendum: I have developed a small makeshift method for us that does the job for now. A pure date specification is expected in the Time field. Certainly capable of optimization, but does what it's supposed to do.

Code:
// add use Joomla\CMS\HTML\HTMLHelper; ... // Check date $agendaTitle = array(); $dateFormat = 'd.m.Y'; $dateFormatDisplay = 'l, d.m.Y'; foreach ($agendas as $i => $agenda) {    $string = strip_tags($agenda->time); $date = DateTime::createFromFormat($dateFormat, $string);    if($date && $date->format($dateFormat) === $string) $agendaTitle = $i; } if($agendaTitle[0] == 0) { echo '<h3 class="eb--agenda-datetitle">'.HTMLHelper::_('date', strip_tags($agendas[0]->time), Text::_($dateFormatDisplay)).'</h3>'; } // Normal Agendas-Table ?> <div class="table-responsive">    <table id="eb-event-agendas" class="table table-bordered table-striped">       <tbody>          <?php          foreach ($agendas as $i => $agenda)          {             // Filter Dates-Only             if(!in_array($i,$agendaTitle)) {          ?>          <tr>              <td class="eb-agenda-time">                 <?php                 ...                  ...          } else if($i > 0) { ?>       </tbody>    </table> </div> <?php // NEW Date-Headline + Table echo '<h3 class="eb--agenda-datetitle">'.HTMLHelper::_('date', strip_tags($agenda->time), Text::_($dateFormatDisplay)).'</h3>'; ?> <div class="table-responsive">    <table id="eb-event-agendas" class="table table-bordered table-striped">       <tbody>       <?php }
Last edit: 2 months 4 days ago by MinneMedia.

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #164909 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Multiple day of Agenda
Thanks MinneMedia for sharing the code. It would be better if you can zip the modified file and upload it here in case someone needs it

Regards,

Tuan
The following user(s) said Thank You: MinneMedia

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #165129 by MinneMedia
Replied by MinneMedia on topic Multiple day of Agenda
I attached the full agendas.php to use in the template-override domain.com/templates/templatename/html/com_eventbooking/plugins/agendas.php
Feel free to use or optimize.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #165130 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Multiple day of Agenda
Great, many thanks again @MinneMedia

Tuan
The following user(s) said Thank You: MinneMedia

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc