Most read articles

Author Message

Mario Ivancic

Sunday 30 November 2008 9:57:10 am

Hi all,
I want to get most read articles(from date to date) from folder (news). Anyone know how to do this. Please help me!
I want to get something like this :

22.11.2008. | (123) Article example one.
22.11.2008. | (87) Article example two.
21.11.2008. | (80) Article example two.
20.11.2008. | (17) Article example two.

--
http://www.escapestudio.net
http://twitter.com/MarioIvancic

Bin LIU

Monday 01 December 2008 1:23:32 am

The counter read is an attribute ?

So you can do a dynamic block ezflow fetch manuel sort by this attribute and published time.

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Gaetano Giunta

Monday 01 December 2008 2:48:48 am

Use the updateviewcount cronjob to parse your apache log files and bring back into eZ the access numbers.

Then write a custom template fetch function to retrieve that data (see this thread for more details): http://ez.no/developer/forum/setup_design/ezview_counter/re_ezview_counter__4

Principal Consultant International Business
Member of the Community Project Board

Bin LIU

Monday 01 December 2008 3:05:28 am

very interesting.

http://ez.no/developer/contribs/template_plugins/ezviewcounter

and

http://ez.no/developer/contribs/template_plugins/ezstats

Thanks !

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

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

Main resources:

Total runtime0.1401 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9375152.6250
Module start 'layout' 0.00590.0040 740.562539.4453
Module start 'content' 0.00990.1290 780.0078596.6094
Module end 'content' 0.13890.0012 1,376.617212.1641
Script end 0.1400  1,388.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.3990160.0002
Check MTime0.00141.0031160.0001
Mysql Total
Database connection0.00090.662610.0009
Mysqli_queries0.085360.8655640.0013
Looping result0.00080.5471620.0000
Template Total0.106776.120.0533
Template load0.00201.415020.0010
Template processing0.104774.716620.0523
Template load and register function0.00010.081410.0001
states
state_id_array0.00080.560310.0008
state_identifier_array0.00070.480520.0003
Override
Cache load0.00161.1777230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.744030.0003
Fetch class attribute name0.00140.963970.0002
XML
Image XML parsing0.00151.051430.0005
class_abstraction
Instantiating content class attribute0.00000.009480.0000
General
dbfile0.00100.7154270.0000
String conversion0.00000.007340.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs