Thank you for your answer. I know a little from PHP and SQL, but I think I cannot use PHP directly on templates of the eZ publish, or am I wrong? I already have a script I use on plain PHP sites, what should I change to use it with EZ, should I make a module?
Thanks in advance for any help, and forgive me if the questions are too basic.
You could actually also do this using a template opreator. This operator would then be used in pagelayout.tpl. The opreator could e.g. save a number in a file, or database, which would be counted everytime the page is accessed.
I'm very surprised that eZ publish doesn't include a counter that you can place in a toolbar. It would probably be more useful than the 'user information' tool.
i've wrote a module for counter. you can have it on request. send an email to bungrudi@gmail.com.
anyways, its very easy to implement/write one yourself. basically you just make a table in mysql or make a counter class with only integer attribute in it (and then instantiate a class of it). the script/module should check $_SESSION['counter'] (or define any other session variable if you wish), if it is set to false or !isset() (or any other value u defined), then it will increment the counter value by one and set $_SESSION['counter'] to true. if $_SESSION['counter'] is true, do nothing.