Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-05 19:04:25

cynicalpink
Member
Registered: 2006-08-21
Posts: 11
Website

How can I change the author's name...

Without going directly into the database? A site I’m working on has multiple authors, but they won’t be entering in their own articles. How can the admin enter in the articles and give them different authors without having to log in as each person?

Offline

#2 2006-09-05 19:10:45

Lis
Member
Registered: 2006-08-28
Posts: 10

Re: How can I change the author's name...

Oh, I’d like the answer to this question as well. I’m in the exact same situation.

Offline

#3 2006-09-05 19:20:01

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: How can I change the author's name...

Offline

#4 2006-09-05 20:29:10

cynicalpink
Member
Registered: 2006-08-21
Posts: 11
Website

Re: How can I change the author's name...

Thanks for the link. What would be ideal in this case is a way to make the article composer have a input field for the author’s name. I don’t want the authors to even have a user account in my TXP install. I thought about putting the byline at the beginning of the article text, but that makes it harder to search by author.

Offline

#5 2006-09-05 20:55:02

NickML
Member
From: Scotland
Registered: 2006-05-14
Posts: 58
Website

Re: How can I change the author's name...

cynicalpink wrote:

I don’t want the authors to even have a user account in my TXP install.

We use a custom field for the “real” author’s name (“the person who wrote it” as opposed to “the person who put it into TXP”). The “real” author rarely gets their own login.

~Nick

Offline

#6 2006-09-05 21:32:09

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How can I change the author's name...

You could also “silently” create an author account—specify your site email instead of theirs and set their permissions to none. The admin workflow plugin could still be used too, and it’s a lot simpler than typing in their name in a field, if the author has more than one article.

Offline

#7 2006-09-08 20:03:04

Lis
Member
Registered: 2006-08-28
Posts: 10

Re: How can I change the author's name...

NickML (or anyone else who can help) can you explain a little more how you make and use a custom field for the “real” author’s name?

Offline

#8 2006-09-08 20:12:28

NickML
Member
From: Scotland
Registered: 2006-05-14
Posts: 58
Website

Re: How can I change the author's name...

In admin>preferences>advanced preferences>Custom fields, I named one of the fields “author”.

How we use the author name on our website is slightly complicated, but, for a simple example, you could then add something like this to your article form:

<code>
<txp:if_custom_field name=“author”>
<p>Article written by <txp:custom_field name=“author” /></p>
<txp:else/>
<p>The author of this piece wants to remain anonymous</p>
</txp:if_custom_field>
</code><br/><br/>

~Nick

Last edited by NickML (2006-09-08 20:13:46)

Offline

Board footer

Powered by FluxBB