Counting?

Author Message

Marco Zinn

Saturday 12 July 2003 5:36:53 am

I know, that I will need this feature sooner or later, so:
Is it possible to show the number of articles/objects in a given folder/node, that were created/modified _today_ (or in the last 24h)?
I will need this for a "news" box.

Like:

5 news today in "products".
Latest news: "We have a news product."

Marco
http://www.hyperroad-design.com

Bård Farstad

Saturday 12 July 2003 6:15:14 am

This limitation is not implemented to the count function. That beeing said it should be fairly quick to add.

--bård

Documentation: http://ez.no/doc

Georg Franz

Monday 14 July 2003 4:20:20 am

Hi Bard,

another idea: is it possible to extend the fetch function / the sort parameters for a "random sort". (I want to show a random image which is in a specific folder)

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

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 31 2025 04:07:41
Script start
Timing: Jan 31 2025 04:07:41
Module start 'layout'
Timing: Jan 31 2025 04:07:41
Module start 'content'
Timing: Jan 31 2025 04:07:41
Module end 'content'
Timing: Jan 31 2025 04:07:41
Script end

Main resources:

Total runtime0.0168 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.9844151.1953
Module start 'layout' 0.00530.0026 740.179736.5938
Module start 'content' 0.00790.0075 776.773490.1094
Module end 'content' 0.01550.0013 866.882833.9922
Script end 0.0168  900.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.6761140.0002
Check MTime0.00116.6290140.0001
Mysql Total
Database connection0.00095.185410.0009
Mysqli_queries0.002313.472330.0008
Looping result0.00000.065310.0000
Template Total0.00105.910.0010
Template load0.00084.596310.0008
Template processing0.00021.303110.0002
Override
Cache load0.00063.298910.0006
General
dbfile0.003721.833180.0005
String conversion0.00000.042640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs