Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-17 08:34:35

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

Author Info Article linked via Custom Field

Resolved

So I’ve followed the general outline of this thread, only now I want to go even more ALA-style, having even the author bio at the bottom of the article page.

Aaaand…

<txp:asy_wondertag>
<txp:article_custom section="author" limit="1" form="authorinfo" authorname="<txp:custom_field name="authorname" />" />
</txp:asy_wondertag>

Really sorry about cluttering up the forums x_X

Last edited by root (2007-06-17 14:09:00)

Offline

#2 2007-06-17 09:30:49

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

Re: Author Info Article linked via Custom Field

Ideally, there would be a “profile” option for authors. Until then, you can throw in some conditionals:

<txp:if_article_author name="username_one">
     <p>Joe Schmoe writes stuff.</p>
</txp:if_article_author>

<txp:if_article_author name="username_two">
    <p>Sally Sue also writes stuff.</p>
</txp:if_article_author>

Last edited by jm (2007-06-17 09:31:16)

Offline

#3 2007-06-17 09:42:23

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

Re: Author Info Article linked via Custom Field

That’s one of the problems: our authors do not necessarily have Textpattern access. We’re hopefully having contributors, and the submissions are just going to go through the editor to keep it as clean and safe as possible. Thus the actual author is the person mentioned in the custom field, and not the one who posted the article.

Offline

#4 2007-06-17 11:01:01

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

Re: Author Info Article linked via Custom Field

Ah, I see. One of my client’s sites has developed the same problem (initially everyone was to be registered), so the unregistered authors have their profiles pasted into the article.

I wonder if you could use the SimplePie plugin to read from an author-XML file. Then you could have individually named author files, or just one giant author file and use XSLT and a custom field to select the current author.

Last edited by jm (2007-06-17 11:02:19)

Offline

#5 2007-06-17 11:24:19

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Author Info Article linked via Custom Field

root, the example code in your opening post, is that a solution or a request for help? It looks like a solution.

Offline

#6 2007-06-17 14:08:37

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

Re: Author Info Article linked via Custom Field

Ruud, yep, it’s a solution. I posed a problem there before, until i realized that the solution was staring me in the face (I had asy_wondertag installed!). Sorry if there was any confusion x_X

Offline

Board footer

Powered by FluxBB