event for asite

Author Message

santosh kumar

Tuesday 17 February 2004 2:51:52 am

Hi ,
vidar thanks for the help i have got the list of events in the site .
Now i need to display the date associated with that event in the list of events
For example
it shuld display --->
event1 21jan1993
event2 31jan1923
event3 24april 1987
etc etc ....
Now when i click Event1 it shuld dispaly the details of event1
and when i view the Event link in the main page the next event event2 shuld be the first event displayed and when i click the event 2 then the event 3 shuld be first and event2 2nd and event1 3rd shuld be dispalyed
I hope any one will help me out
could any one give me the code for that /..
this is the templatef ile full_view_events_folder
<div class="pagetitle">
View Events
</div>

{* Grab all the child nodes. *}
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array ))}

<table class="events_list" cellpadding="10" cellspacing="10" border="0">

{* Loop through all nodes that we just fetched. *}
{section name=Child loop=$children}

{* Output the name as a link to the node containing the member. *}
<tr>
<td>
<a href={$:item.url_alias|ezurl}>{$:item.name}</a>
</td>
</tr>

{* End of loop. *}
{/section}

</table>

{/let}

santosh

James Packham

Tuesday 17 February 2004 4:12:12 am

Just add stuff to your <a> tags and pipe it with the apprpiate date format (otherwise it'll just be unix time) :)

examples

<a href={$:item.url_alias|ezurl}>{$:item.name} {$:item.published|l10n(shortdate)}</a>

<a href={$:item.url_alias|ezurl}>{$:item.name} {$:item.modified|datetime(custom,"%m %y")}</a>

see documentation on custom dates for more info.

Regards,

James

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 20:49:27
Script start
Timing: Jan 18 2025 20:49:27
Module start 'layout'
Timing: Jan 18 2025 20:49:27
Module start 'content'
Timing: Jan 18 2025 20:49:28
Module end 'content'
Timing: Jan 18 2025 20:49:28
Script end

Main resources:

Total runtime1.1170 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7891152.6094
Module start 'layout' 0.00560.0035 740.398439.4297
Module start 'content' 0.00911.1066 779.8281499.6016
Module end 'content' 1.11560.0013 1,279.42978.1875
Script end 1.1170  1,287.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2998160.0002
Check MTime0.00140.1266160.0001
Mysql Total
Database connection0.00070.058510.0007
Mysqli_queries1.063395.1883540.0197
Looping result0.00060.0560520.0000
Template Total1.079396.620.5397
Template load0.00200.181120.0010
Template processing1.077396.443320.5386
Template load and register function0.00020.020310.0002
states
state_id_array0.00190.170010.0019
state_identifier_array0.00220.200420.0011
Override
Cache load0.00170.1514460.0000
Sytem overhead
Fetch class attribute can translate value0.00060.054620.0003
Fetch class attribute name0.00120.111530.0004
XML
Image XML parsing0.00050.046420.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00160.1455160.0001
String conversion0.00000.000840.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs