4
  1. How do I display the "(new)" label in comments listing page.
  2. What is the logic of displaying the "(new)" label. How does it work?

1 Answer 1

4

There is a database table called history that records a users history to check against. There is an option in Views to add a 'new' marker to content that has not been viewed by the user and had been created within a certain time frame. If you are further interested in how the 'new' marker works, you can find the query that Views uses in views/modules/comment/views_handler_field_node_new_comments.inc to add the 'new' tag to a list of fields.

(edited for clarity)

1
  • Is there any module for that so as "new comments" marked as 'New' ?
    – Dion
    Jan 19, 2012 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.