Forums / Developer / tipafriend_top_list not working

tipafriend_top_list not working

Author Message

Jack Rackham

Sunday 24 October 2004 10:13:48 am

This code is not working in a pagelayout template in ez 3.4.2
Is there a bug in 3.4.2?

{let tipsend_list=fetch('content','tipafriend_top_list',hash(limit,5,offset,0))}

<div id="mostpopular">
<h3>{""|i18n("design/news/layout")}</h3>
<ul>
{section var=tipped loop=$tipsend_list sequence=array(bglight,bgdark)}
<li class="{$tipped.sequence}">
<a href={$tipped.item.url_alias|ezurl}>{$tipped.item.name|wash}</a>
<div class="date">
({$tipped.item.object.published|l10n( shortdate )})
</div>
</li>
{/section}
</ul>
</div>
{/let}

Ɓukasz Serwatka

Sunday 24 October 2004 11:11:09 am

Did you try this?

{$tipsend_list|attribute(show)}

Does $tipsend_list store any data?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

eZ debug

Timing: Jan 19 2025 00:22:55
Script start
Timing: Jan 19 2025 00:22:55
Module start 'content'
Timing: Jan 19 2025 00:22:57
Module end 'content'
Timing: Jan 19 2025 00:22:57
Script end

Main resources:

Total runtime1.4550 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.7109180.8359
Module start 'content' 0.00691.4382 768.5469538.4922
Module end 'content' 1.44510.0098 1,307.039142.1094
Script end 1.4549  1,349.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00780.5368140.0006
Check MTime0.00120.0819140.0001
Mysql Total
Database connection0.00080.052010.0008
Mysqli_queries1.402196.3669550.0255
Looping result0.00060.0389530.0000
Template Total1.415097.320.7075
Template load0.00200.138920.0010
Template processing1.412997.110820.7065
Template load and register function0.00010.005510.0001
states
state_id_array0.00150.101610.0015
state_identifier_array0.00160.107320.0008
Override
Cache load0.00170.1157270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.044420.0003
Fetch class attribute name0.00100.070040.0003
XML
Image XML parsing0.00090.060520.0004
class_abstraction
Instantiating content class attribute0.00000.000440.0000
General
dbfile0.00130.0875260.0000
String conversion0.00000.000530.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs