patch to add a timestamp before the title of each feed

ec - June 13, 2005 - 12:25
Project:News Page
Version:HEAD
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hello Robert, I feel that the items on the page lack timestamp, here is a patch to add this feature. eric

AttachmentSize
np_timestamp.patch834 bytes

#1

Volacci - July 4, 2006 - 04:04

I assume that this patch won't work for version 4.7?

#2

ec - July 27, 2006 - 14:45

Hello,
Obviously not, but you can do it by hand :
- look for function theme_news_page_item
- replace $output .= '<h3 class="feed-item-title">' . $item->title . '</h3>';
by
$output .= '<h3 class="feed-item-title">' . format_date($item->timestamp, 'custom', 'Y/m/d') . ' - ' . $item->title . '</h3>';
- et voilà !
Regards,
Eric

 
 

Drupal is a registered trademark of Dries Buytaert.