I have an "upcoming events" list on my website. The events are sorted according to the CCK field "Event Date".

I would like to add some red text that says "new" next to events that have been created or updated in the last 3 days.

So users can create events many months in advance, and it should show up on the home page according to date, but events created in the last 3 days should say "new" next to them.

This seems like it should probably be something that's pretty common, but I have not been able to find any modules or tips via google. I would really appreciate any help with this.

Thanks

Comments

bmblack’s picture

Also, I just happened to notice that the drupal forums kind of do this already. Every time there's a new post, it says "NEW" next to the number of posts until you view it.

rivena’s picture

Did you figure this out? Perhaps through views? http://drupal.org/node/303834?

Anisa.

AvalancheOfLlamas’s picture

There's a field in views called "Node: has new content" that will do this for you. By default it says "New" in red until you view it. You can theme the output of the view by rewriting it in views and/or css.

Alan