Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
(solved) custom field output as linked author
Hello
I try it in my easy english and hope that everyone can understand this ;-)
I have guest authors from time to time, they send me their lyrics and I released it, for that I am using a custom field and enter your name.
Example
Look at the end of this article: Gastautor: Unbill (custom field output)
This is not linked, however. Is there a way to link these names, so that all articles are listed on click of a guest author?
My custom-field code:
<txp:if_custom_field name="Gastautor"><strong>Gastautor: </strong> <txp:custom_field name="Gastautor" /> - </txp:if_custom_field>
Last edited by SuMu (2010-02-23 14:02:07)
Offline
Re: (solved) custom field output as linked author
Hi may be you can try to pass the custom_field as get variable like this http://yoursite.com/authorsection/?theauthor=<txp:custom_field name=“Gastautor” />
and in the section authorsection use adigps to get theauthor value and use: <txp:article_custom Gastautor=’<txp:variable name=“theauthor”/>’ />
Cheers
Offline
Re: (solved) custom field output as linked author
There’s an even simpler solution. The author
query parameter is part of core Txp. All you need to do is make a link such as:
OK, not thinking clearly. Is there a reason you can’t directly assign articles to the guest author?
Last edited by jsoo (2010-02-23 13:14:26)
Code is topiary
Offline
Re: (solved) custom field output as linked author
I solved the problem, I make accounts its easier ;)
Offline