I have a site that is run by two students who edit the work of several contributors.
The contributors don't always have user accounts, so we've run into a problem where the editors will upload content and the site will automatically credit the editors in the author/date info on the front page.
I'd like to fix that.
For the article content type, we've created a list of the names of contributing writers. This value is named "field_writername".
I'd like to alter Drupal's default behavior regarding the display of author & date info on the frontpage. I'd like to have the "field_writername" value replace the username of the person who uploaded the content.
Can someone explain how I would go about doing that?
Thank you.
Comments
You can alter how the nodes
You can alter how the nodes are displayed by creating a template file for the article content type (if it doesn't exist yet in your theme).
For Drupal 7 I think the filename would be node--article.tpl.php. You can copy and rename the themes node.tpl.php and change only the part that prints the submitted information.
http://api.drupal.org/api/drupal/modules--node--node.tpl.php
You can also visit the
You can also visit the "Manage Display" for the content type, Under "Use custom display settings for the following view modes", select both "Teaser" and "Full" and you can determine which fields show. If you have the Display Suite module installed you also get separate fields for author and date.
Thanks, nevets. I have it
Thanks, nevets. I have it almost to where I want it to be.
I currently have the settings displaying the "writersname" field in the first line, followed by a field that lists the author's title on the second line. How could I have both appear on the same line, incorporate the "strong" and "em" styles and add an empty line between that and the body field below?
It looks like this:
John Doe
contributing writer
[body content]
I'd like it to look like this:
By John Doe, contributing writer
(space)
[body content]
Are you using the Display
Are you using the Display Suite module?
I am now ... I'll read up on
I am now ... I'll read up on it this evening and hopefully get it working.
You can add custom fields
You can add custom fields with display suite (in D6 you also need node display). You can make a new code field, give it a name, checking "Toggle this checkbox if you are using tokens in this field." and a field code something like
replacing my fake tokens with the tokens for the your actual fields.
If you do not have tokens installed you can use something like
in this case using the names of your actual fields.
^
Perhaps http://drupal.org/project/submitted_by can do some tiny work.
What's new and changing in PHP 8.4