Hi Khalid,

I was looking forward to have a setting with my favorite nodes module that i could be asked to update the node's timestamp when some user chooses to add a particular to his/her favorite list, the reason being that I would want to have a list of most popular nodes for a specific content type (or may be generic), then this is some activity around the node which would make it popular..

I guess it will be a simple code to add a query such that it updates the "timestamp" field in node_revisions, and "changed" field in node table. It is otherwise difficult to incorporate this as an activity with the node.

What say?

Comments

kbahey’s picture

Status: Active » Closed (won't fix)

This is bad design. Even when a user comments on a node, we don't change the date. So why change it when someone bookmarks it.

There are other ways to list most popular favorite nodes. For example SELECT ...{favorite_nodes} GROUP BY nid.

vyasamit2007’s picture

I guess u meant "group by last" in case of D6.. I think drupal should provide some way by means of which all the activities of a node change a particular timestamp.. I mean "yes" you are right that even comment doesnt do that but comment does provide a "last comment" filter.. which again is from node_comment_statistics but then I would ideally love to have that as well update a certain timestamp which is common for all the activities --> which is why i suggested "changed" timestamp in node table.. I know this is not the right place to talk about this... and yes, u r rite -- the change cannot be in this module in that case coz it doesnt comply with drupal architecture...

Thanks