How can I check if user have view a node?

Author Message

Daniele Nocentini

Thursday 08 June 2006 12:21:04 am

Is possible to make template code for checking if a ez user have view a node such us unread message in email client.

Antica Bottega Digitale srl
http://www.abd.it

Ɓukasz Serwatka

Thursday 08 June 2006 1:03:35 pm

Hi,

This is not possible at the moment. You can create new table and track node_id and user_id and remember the state. Then via tpl operator fetch the state for current node in the template.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

eZ debug

Timing: Jan 21 2025 06:08:06
Script start
Timing: Jan 21 2025 06:08:06
Module start 'layout'
Timing: Jan 21 2025 06:08:06
Module start 'content'
Timing: Jan 21 2025 06:08:06
Module end 'content'
Timing: Jan 21 2025 06:08:06
Script end

Main resources:

Total runtime0.0238 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0111 588.0469151.2266
Module start 'layout' 0.01110.0047 739.273436.6797
Module start 'content' 0.01580.0061 775.953190.0938
Module end 'content' 0.02190.0018 866.046929.9922
Script end 0.0237  896.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.9002140.0002
Check MTime0.00114.7675140.0001
Mysql Total
Database connection0.00114.624110.0011
Mysqli_queries0.008636.168330.0029
Looping result0.00000.080210.0000
Template Total0.00145.910.0014
Template load0.00114.779610.0011
Template processing0.00031.085310.0003
Override
Cache load0.00083.390310.0008
General
dbfile0.00156.150880.0002
String conversion0.00000.066240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs