Forums / Developer / Magazine download counter

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