URL variables with Agenda contribution

Author Message

James Ward

Thursday 20 May 2004 9:00:18 am

I feel bad loading up the contribution comments with these questions so I'm moving it to this forum. I am trying to get the Agenda contribution
( http://www.ez.no/community/contributions/applications/agenda_v1_0 )
working but am having no luck reading variables from the url.

The url is:
http://www.mysite.com/index.php/en/content/view/full/47/day/18/month/5/year/2004

and I would like to extract the date information from it. Here is the code which I am currently using:

{let temp_ts=makedate( $view_parameters.month, $view_parameters.day, $view_pa
rameters.year )
events=fetch( 'content', 'list', hash( 'parent_node_id', 47,
'attribute_filter',
array( 'and',
array( 'event/date_from', '<=', $temp_ts
),
array( 'event/date_to', '>=', $temp_ts )
) ) ) }
Events scheduled for: {$temp_ts}
{/let}

The temp_ts variable never has a value. Am I missing something here?

Thanks in advance.

working at www.wardnet.com
blogging at www.jamesward.ca

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 19:58:18
Script start
Timing: Jan 19 2025 19:58:18
Module start 'layout'
Timing: Jan 19 2025 19:58:18
Module start 'content'
Timing: Jan 19 2025 19:58:19
Module end 'content'
Timing: Jan 19 2025 19:58:19
Script end

Main resources:

Total runtime0.7834 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.0064 589.2734152.6406
Module start 'layout' 0.00640.0029 741.914139.4766
Module start 'content' 0.00920.7727 781.3906469.1484
Module end 'content' 0.78200.0014 1,250.53918.1406
Script end 0.7834  1,258.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4033160.0002
Check MTime0.00130.1625160.0001
Mysql Total
Database connection0.00100.131510.0010
Mysqli_queries0.740294.4920460.0161
Looping result0.00040.0560440.0000
Template Total0.751295.920.3756
Template load0.00210.267520.0010
Template processing0.749195.625020.3746
Template load and register function0.00030.033310.0003
states
state_id_array0.00080.104410.0008
state_identifier_array0.00140.176020.0007
Override
Cache load0.00170.2136130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072410.0006
Fetch class attribute name0.00060.075920.0003
XML
Image XML parsing0.00280.354310.0028
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00310.3986160.0002
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 7

Time used to render debug report: 0.0001 secs