Closed (fixed)
Project:
Drupal core
Version:
5.1
Component:
other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2007 at 04:43 UTC
Updated:
4 Mar 2008 at 06:23 UTC
I am using drupal 5.1 with minnelli theme,
Looking for an easy way to display only the date in nodes, block etc...( Ex : March 23, 2007 ). Display the time is too long and useless for the website I use.
There is actually no way to do this in the date and time format settings.
Is it possible to customize our own date and time format ? Or any other ideas ?
Also looking for a way to hide the author name on each nodes ( no need also to display it ).
Any suggestions ?
Thank you
Comments
Comment #1
RobRoy commentedGo to Administer >> Site building >> Themes and click configure. You'll see a display author information with checkboxes. Deselect your desired node types. Mark this issue closed if that fixes it for you. Thanks.
Comment #2
PePiToO commentedTHank you for the fast reply,
This option just help me to disable everything ( no date, time and author displayed.... )
My problem is different, I just need the date to be display ( Ex : 24 march 2007 ). I don't want any time ( Ex: 8h30am etc... ) or author name to be displayed...
I already thought about some possibilities, but i don't know how to do it :
-Customize the date and time format ?
-Modify the theme minnelli to display only the date, without time and author...
Comment #3
RobRoy commentedEdit the node.tpl.php file in your themes directory.
Comment #4
ChrisKennedy commentedCustomizing date-time formats is in the works for Drupal 6, see http://drupal.org/node/105039
If you wanted to have a custom format in Drupal 5 I think you'll need to manually set the date_format_short/date_format_medium/date_format_long variable through a db command or running variable_set() somewhere (e.g. through devel.module).
Comment #5
scoutbaker commentedCustom date formats is part of Drupal 6 (see ChrisKennedy's link in #4).
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.