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...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:11:11
Script start
Timing: Jan 18 2025 05:11:11
Module start 'layout'
Timing: Jan 18 2025 05:11:11
Module start 'content'
Timing: Jan 18 2025 05:11:12
Module end 'content'
Timing: Jan 18 2025 05:11:12
Script end

Main resources:

Total runtime0.7034 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.4609152.6406
Module start 'layout' 0.00580.0026 742.101639.4922
Module start 'content' 0.00840.6931 781.5938406.3047
Module end 'content' 0.70150.0018 1,187.89848.1250
Script end 0.7034  1,196.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4374160.0002
Check MTime0.00130.1860160.0001
Mysql Total
Database connection0.00070.105610.0007
Mysqli_queries0.668295.0008460.0145
Looping result0.00050.0662440.0000
Template Total0.668795.120.3344
Template load0.00210.301120.0011
Template processing0.666694.768920.3333
Template load and register function0.00020.025510.0002
states
state_id_array0.00120.170710.0012
state_identifier_array0.00150.212220.0007
Override
Cache load0.00170.241440.0004
Sytem overhead
Fetch class attribute can translate value0.00080.110210.0008
Fetch class attribute name0.00090.121410.0009
XML
Image XML parsing0.00010.015510.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00080.1184100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs