Forums / Setup & design / I want to do what ez did in the contrib section

I want to do what ez did in the contrib section

Author Message

Daniel Guerrier

Monday 22 August 2005 9:18:07 am

I have asked this question many tmes but never really got an answer. I noticed that the contrib section of the ez.no site is doing exactly that. I wanted to keep track of the number of times a file is downloaded and display it to the user. Just as it is here http://ez.no/community/contribs/applications

Can the person who worked on this give us some insite on how this was done. Many of the folks on this board posed the same question with no response.

Daniel Guerrier

Tuesday 23 August 2005 7:25:51 am

Anyone?!?!?

bisk

Tuesday 23 August 2005 9:10:18 am

In the contributions there's ezstats and ez viewcounter. I think with those you can do what you want, although I haven't tried it myself.

http://ez.no/community/contribs/template_plugins

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Hans Melis

Tuesday 23 August 2005 12:14:21 pm

Hi Daniel,

That's really something simple. The download count is an attribute of the ezbinaryfile class.

Suppose you have a class which contains a file attribute, you'd display the download count in templates like this:

{$object.data_map.file_attribute.content.download_count}

I don't know when this was added in eZ publish, but I guess in 3.5.

Hans
http://blog.hansmelis.be