By novovox on
I want to change the format of the submitted information on a story (and blog) node type.
I want to be able to change this:
Submitted by username on Fri, 11/27/2009 - 21:04
to this:
By username | Fri, November 27 2009
Additionally, I'd then like to be able to apply CSS to each of the date variables so that I can create graphic backgrounds etc to style the date.
Any guidance is really appreciated.
Comments
I am pretty new to drupal but
I am pretty new to drupal but I have done similar things many times.
You should create a .tpl.php for the story node replacing the print $submited with the appropriate variables and formating the as you like. You should definately use devel module to help you out figure out the available variables.
If the change you want to do is sitewide then you could look here:
http://drupal.org/node/81636
and here:
http://www.kirkdesigns.co.uk/format-submitted-text-drupal-6-nodes-and-co...
OK just tried it... you need
OK just tried it...
you need to find node.tpl.php in your theme directory. Make a copy and rename it to node-story.tpl.php (not 100% sure about the name but I think a story is a node)
now find the part that says
And replace it with:
Hope this helps.
Note: the date is the creation date, you could use the modification date by using $node->modified
Drupal 7
In Drupal 7, the format should be:
--
soncco.com