By info.mediation on
Hi there, I'm totally new to Drupal, and I've read the documentation by this is eluding me. Hopefully someone will have some ideas :)
I'm wondering how would I go about removing the "Submitted By" to just make it "By" when authoring a Story?
Also and related, I noticed when posting a Story that I cannot paste in an Author's name if that Author is not already a registered user of the Drupal site. Is there a way around this? Meaning, I'm logged in as, say, Admin, and I want to post a story with an arbitrary Author's name, like "Foo Bar" or anything really, without having to create users for those names...
Comments
You probably need to use CCK
You probably need to use CCK to create a new text field to contain the author's name to handle the "not a reg user" situation.
The Submitted by text is generated here: http://api.drupal.org/api/function/theme_node_submitted/6. The garland theme overrides it like this, in its own template.php file: http://api.drupal.org/api/function/phptemplate_node_submitted/6. You could do something similar... or extend it to check for Anonymous user and if so and if your custom Author field is populated then use that instead of
theme('username', $node).gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Thanks!
That sounds like just the direction I need! 'ppreciate it.
Or you can do it in your
You can do it in your theme configuration page.
Go to /admin/build/themes and click the "Configure" tab. There are settings for "submitted by" etc for each content type.
Or you can modify the node template of your theme (node.tpl.php file), which prints the nodes.