I’d like to display a little “new” text message for newer articles in the different categories on a website since the user last visited.
I think cookies is the way to go.
I don’t know if passing cookies in PHP is a great solution here, but I guess it is (since it won’t be so simple in js?).
The idea would be to check the number of projects in categories and compare them to the last visit. If n of projects in category X > n of projects in category X at date -last visit- then...
Is there a good way to go here, or something that could be suggested ?
Thanks a lot!
No, there is no native $page->created() unless you store a date at creation as in the example. As I wrote above, I was assuming that an article has at least a publication date.