How to get the most rated articles list ?

Author Message

Sébastien Antoniotti

Thursday 08 March 2007 11:32:39 pm

Hi,

I'm using the ezarticlerating extention, so users can nicely rate nodes.

But I would want to display the list of the 10 articles that are most rated... is there any way to do this without an homemade template operator ?

eZ Publish Freelance
web : http://www.webaxis.fr

Bruce Morrison

Thursday 08 March 2007 11:50:20 pm

Hi Sébastien

I'm assuming you are talking about http://ez.no/community/contribs/hacks/ez_article_rating ?

The functionallity you require doesn't look to be present in the extension. However that doesn't mean it can't be added.

I suspect you could do it using extended attribute filtering. See:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 00:29:37
Script start
Timing: Jan 19 2025 00:29:37
Module start 'layout'
Timing: Jan 19 2025 00:29:37
Module start 'content'
Timing: Jan 19 2025 00:29:38
Module end 'content'
Timing: Jan 19 2025 00:29:38
Script end

Main resources:

Total runtime0.6378 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.0047 588.0313152.6406
Module start 'layout' 0.00470.0031 740.671939.4766
Module start 'content' 0.00780.6286 780.1484530.9219
Module end 'content' 0.63640.0013 1,311.07038.1250
Script end 0.6378  1,319.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5009160.0002
Check MTime0.00140.2159160.0001
Mysql Total
Database connection0.00070.108810.0007
Mysqli_queries0.592392.8674540.0110
Looping result0.00050.0771520.0000
Template Total0.606895.120.3034
Template load0.00190.303520.0010
Template processing0.604894.826420.3024
Template load and register function0.00010.013910.0001
states
state_id_array0.00150.239110.0015
state_identifier_array0.00110.178920.0006
Override
Cache load0.00150.2407160.0001
Sytem overhead
Fetch class attribute can translate value0.00040.068020.0002
Fetch class attribute name0.00110.176240.0003
XML
Image XML parsing0.00100.157920.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00110.1660220.0000
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
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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs