Forums / Developer / How to display tomorrows event in agenda template..

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to display tomorrows event in agenda template..

Author Message

meriam santos

Thursday 14 January 2010 5:53:18 pm

Hi all,Got this problem for quite sometime on displaying the next days event.i hope that somebody will shed a light as i dont have any idea on how to do this.i have here the fetch for the event from agenda template(thanks Andre for this template). really apreciate if somebody will reply.{def$events=fetch( 'content', 'list', hash('parent_node_id', $event_node,'sort_by', array( 'attribute', true(), 'schedule/from_time' ),'class_filter_type', 'include', 'class_filter_array', array( 'schedule' ),'main_node_only', true(), 'attribute_filter',array( 'or', array( 'schedule/from_time', 'between', array( sum($first_ts,1), sub($last_ts,1) )), array( 'schedule/to_time', 'between', array( sum($first_ts,1), sub($last_ts,1) )) )))}{foreach $events as $event}{if eq($temp_month|int(), $event.data_map.from_time.content.month|int())}{set $loop_dayone = $event.data_map.from_time.content.day}{else}{set $loop_dayone = 1}{/if}{if eq($temp_month|int(), $event.data_map.to_time.content.month|int())}{set $loop_daylast = $event.data_map.to_time.content.day}{else}{set $loop_daylast = $days}{/if}{for $loop_dayone|int() to $loop_daylast|int() as $counter}{set $day_array = concat($day_array, $counter, ', ')}{*check and add to day events while we already have the days*}{if eq($counter,$temp_today)}{set $day_events = $day_events|append($event)}{/if}{/for}{/foreach}thanks in advance...