Hi, How I can set a article's author to somebody who isn't registered user of my site? Any idea ?

Sorry for my poor English.

Comments

WorldFallz’s picture

Off the top of my head, I would suggest adding a cck text field to hold that information and change the theme to display that instead of the drupal author.

theorichel’s picture

On my site I publish several pieces by people who will never visit my site. I understand the ,method you suggest but I do not understand Drupals rigidity in this.

WorldFallz’s picture

I don't really see it as "Drupal rigidity". Almost any information system you use will require user information to go about it's routine business. The user information controls a great deal and is integral to the functioning of any db system-- drupal is no different. In fact, I would go so far as to say that drupal is more flexible then most in that it even provides the functionality for you to add another field to track that info. Many do not.

When you create a node it must have a user associated with that node. Conventionally, it's called the "author" but it's really the creator. And that information is obtained from the person supplying the login credentials for the currently logged in user. Like it or not, if you create the node for someone else you are still the creator of the node-- not the person providing content to you in another format. If you want to keep track of another name for the node (author, owner, provider, whatever) you just need to add another field to hold that info.

Alternatively, you could just create accounts for those people and use them when creating the content. Come to think of it... there's a contributed module called Masquerade that easily lets you switch between users. This might be exactly what you need... I would definitely check it out.

modul’s picture

Why not simply change the "creator's name" (in the Authoring Information section) into the real writer's name, at the bottom of the editing form? I don't think it matters that the name you fill in there belongs to a registered user or not. Could be wrong there, but I don't suppose so.

meridiandigital’s picture

@Modul: This is an old thread, but I'm tucking this in here for other folks. You can't just manually edit the author information with a proper name as of D6. Best alternatives I see are adding a CCK field, adding a fullname field to user profile, then adjusting template.php to pull the fullname field instead of username, and the realname, author_smart_name, and/or author_taxonomy modules.

Modules:

http://www.drupal.org/project/realname
http://www.drupal.org/project/author_smart_name
http://www.drupal.org/project/author_taxonomy

Using a "fullname" profile field:

http://www.howforge.com/how-to-show-authors-full-name-in-drupal

And of course the CCK procedure is straightforward enough; add the field and tweak your node.tpl.php to display the new field instead of the UID