I manually input over 300 'retroactive' blog entries into Drupal before bringing my site online. For each entry (they are actually story nodes) I set the 'authored on' date appropriately. When I am viewing a node, I see the right date. However, when I search, the search results show the date when the node was actually created. So, an entry for March 14, 2006 might show up as February 1, 2007.

For now, I've overridden the search function to suppress date display. What I'd like to do is find out how to override the search function to show the proper date. I'm not yet proficient with php and the Drupal API. I need some guidance.

Is what I want possible? Does anyone know where I'd start?

Thank you!

Comments

alix’s picture

I found this thread from October http://drupal.org/node/89284 that suggests that the dates I am seeing aren't even the dates when the posts were entered. Unfortunately, no one had a solution for that poster. It's hard to believe this would be an oversight. Ideas?

PRFB’s picture

I just observed this issue as well. I have a similar situation to the one you described.

I suspect this falls into the "feature, not a bug" category because somebody figures a searcher is most interested in knowing when a node was most recently updated or commented upon.

My ideal solution would be to show both a "Created on:" and "Updated on:" date. I have zippo programming skills but maybe I'll put up a bounty. LMK if you've found another way around your problem, or you'd like to get involved in the bounty hunt.

Thanks,
Patricia

xamount’s picture

There is a theme function called theme_search_item that you can use to theme search results. Basically copy this function to template.php in your themes folder (you will have to create template.php if it does not exist) and configure as you please.