Thanks for visiting ict4pr.org,
I use mxmCounter from http://www.mxm.dk/products/public/mxmCounter/
This is great and easy tool to add counter in the cps web site. What you need is add this product in the cps instance root, customize the properties as you need. Then create page template in the root of cps instance, in my case i use 'counter' as the id. Then put in the zpt this line:

       Read:
<span style="font-family: courier; border: 1px solid black; background-color: lightgray;
                    padding: 0px 4px;"
             tal:define="count python:here.mxm_counter.count(here)"
             tal:content="python:'%06i' % count">
       0000001
       </span> times

After that i modify the theme to include the counter in each sections or on specific page. i use *Custom portlet* then fill the Render method with 'counter' (the id of page template that count and display the page counter). Now mxmCounter will record every link each time the counter is invoked. The limitation is only one mxmCounter for each zope instance, read the documentation for more detail.

Note: some time you will find that the counter did not show the actual hits, but the counter is actually work. For complete view open the mxm_Counter instance from ZMI in set counter tab.

Best,
Adi
IT SPECIALIST
www.ict4pr.org

JoseLuis de la Rosa Triviño wrote:
Hello, I have seen the website http://www.ict4pr.org and I have noticed It has a counter in every document with the number of visits. Adi, How did you made this? May you share the source code, If it has any?

Thank you very much.

Regards.
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel





_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to