Posted by ec on June 13, 2005 at 12:25pm
Jump to:
| Project: | News Page |
| Version: | master |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Hello Robert, I feel that the items on the page lack timestamp, here is a patch to add this feature. eric
| Attachment | Size |
|---|---|
| np_timestamp.patch | 834 bytes |
Comments
#1
I assume that this patch won't work for version 4.7?
#2
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
#3
For drupal 6 I have added the following line:
$output .= '<p>' .'Last Updated' . ' - ' . format_date($item->timestamp, 'custom', 'd/m/Y') . '</p>';
after
$output .= '<h3 class="feed-item-title">' . filter_xss($item->title, array()) . '</h3>';}
So end up with
$output .= '<h3 class="feed-item-title">' . filter_xss($item->title, array()) . '</h3>';}
$output .= '<p>' .'Last Updated' . ' - ' . format_date($item->timestamp, 'custom', 'd/m/Y') . '</p>';
$output .= '<p>';
in news_page.module
Not sure if this is correct way to do this but output seems correct.