Template logic for fetching upcoming meetings

Author Message

Eirik Alfstad Johansen

Saturday 16 April 2005 4:20:45 am

Hi,

I have a class called meeting which includes an attribute of the datetime datatype which stores the date and time of when the meeting starts.

Now, what I'm trying to do is fetch the upcoming meetings, meaning those that start the same day or later. For this purpose, I've tried the following attribute filter, which did not work (no result was returned):

attribute_filter, array( 'or', array( 198, '>', currentdate() ))

Is what I'm trying to accomplish even possible, and if so, how should I go about it?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Saturday 16 April 2005 4:34:11 am

Never mind, it actually worked. The problem was that the meeting object was incorrectly placed in the content structure.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 19 2025 09:11:47
Script start
Timing: Jan 19 2025 09:11:47
Module start 'layout'
Timing: Jan 19 2025 09:11:47
Module start 'content'
Timing: Jan 19 2025 09:11:48
Module end 'content'
Timing: Jan 19 2025 09:11:48
Script end

Main resources:

Total runtime1.3055 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.2969152.6406
Module start 'layout' 0.00620.0030 741.937539.4766
Module start 'content' 0.00921.2948 781.4141487.1250
Module end 'content' 1.30390.0015 1,268.53918.1250
Script end 1.3054  1,276.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2451160.0002
Check MTime0.00140.1059160.0001
Mysql Total
Database connection0.00110.082410.0011
Mysqli_queries1.249495.7049520.0240
Looping result0.00060.0489500.0000
Template Total1.268397.220.6342
Template load0.00210.163120.0011
Template processing1.266296.991320.6331
Template load and register function0.00010.009010.0001
states
state_id_array0.00160.126210.0016
state_identifier_array0.00140.110720.0007
Override
Cache load0.00160.1196130.0001
Sytem overhead
Fetch class attribute can translate value0.00140.109110.0014
Fetch class attribute name0.00210.162130.0007
XML
Image XML parsing0.00060.047910.0006
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00180.1375160.0001
String conversion0.00000.000640.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs