Counter on image to store the number of "clics"

Counter on image to store the number of "clics"

Thursday 19 January 2006 2:36:01 am - 4 replies

Author Message

laurent le cadet

Friday 27 January 2006 12:39:34 am

Really no solution ?

I'm quiet sure I've seen this before...

Marko Žmak

Friday 27 January 2006 7:28:28 am

Here's one possible sollution:

1) make link on every image to go to content/view/full for that image
2) in content/viewfull do this:
- count the hit for this node using extension ezstats (it's in contib here on ez site)
- redirect the user to the apropriate page using redirect extension (also in contrib)

for this to work you should add an URL attribute to your image class where you can write the URL the user is redirected to.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

laurent le cadet

Friday 27 January 2006 7:33:04 am

Hi Marko,

This sounds good.

I'll be back after the job.

Thanks.

Laurent

Marko Žmak

Friday 27 January 2006 3:07:24 pm

If you have any trouble with ezstats contact konrad, the maker of the extension. And tell him I said hello :)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.