简体   繁体   中英

How to know when a Drupal Node is new

I want to do a list of new nodes. I went to the code for the path "admin/content/node" which has a similar list, and I found it considers as "new" when the node timestamp is relatively close to the current date.

I'm afraid I can not trust on this method, because the timestamp is taken from the "changed" node field, and it gets updated everytime the node is updated (ie: when an user "likes" a node)

Is there other reliable method to determine when a node is NEW? (I'm using Drupal5)

thanks

$node->created - assuming that is existed in D5

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM