Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-23 10:34:06

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

(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)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#2 2010-02-23 10:43:56

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

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

#3 2010-02-23 13:10:13

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#4 2010-02-23 14:01:45

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: (solved) custom field output as linked author

I solved the problem, I make accounts its easier ;)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

Board footer

Powered by FluxBB