Magazine download counter

Author Message

Alejandro Dominguez

Tuesday 29 March 2011 2:49:05 am

Hello folks,

I need to have a list of the differents magazines of a publisher.

I have created a class with

  • Description : XML BLOCK
  • Name: Text Line
  • Frontpage : Image

Now I would like to have an atributte to include an embed flash from issuu like this one http://issuu.com/almamagazine/docs/55_-alma-_james_mcavoy and I would like to add the PDF file and count how many times it has been downloaded.

any ideas of how to do that?

Nicolas Pastorino

Tuesday 29 March 2011 3:14:25 am

Hi Alejandro,

About being able to measure the download count of a file : it is a native feature of eZ Publish. Every 'binaryfile' content attribute has an automatic download count, to which you can access from a template. Example :

{$node.data_map.file.content.download_count}

About embedding an issuu-like flash : is it self contained ? Meaning does one just have to place the <embed> code ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Alejandro Dominguez

Wednesday 30 March 2011 12:20:48 am

The default donwload counter is a great feature :D. I have just saved a lot of time. The issu magazine is an embed code so with Insert Literal Text I can do it

Thanks for your answer :)

Cheers,

Alejandro

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 30 2025 00:14:44
Script start
Timing: Jan 30 2025 00:14:44
Module start 'layout'
Timing: Jan 30 2025 00:14:44
Module start 'content'
Timing: Jan 30 2025 00:14:44
Module end 'content'
Timing: Jan 30 2025 00:14:44
Script end

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1328151.2109
Module start 'layout' 0.00540.0024 739.343836.6563
Module start 'content' 0.00780.0066 776.000090.3750
Module end 'content' 0.01440.0015 866.375033.9766
Script end 0.0158  900.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.2142140.0002
Check MTime0.00117.1311140.0001
Mysql Total
Database connection0.00074.180610.0007
Mysqli_queries0.002917.994830.0010
Looping result0.00000.063210.0000
Template Total0.00116.910.0011
Template load0.00095.449910.0009
Template processing0.00021.437710.0002
Override
Cache load0.00063.676910.0006
General
dbfile0.002213.981180.0003
String conversion0.00000.037640.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