Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-18 06:21:37

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

(solved) custom field: name and email / section

Good morning

I want to use a custom field and the output will be a author name (if possible as a author link) and an email (if possible a protected email and another custom field).
Because I have celebrity writers who have no access my blog.

It should look like:

Author: Mister X – eMail: test@example.com

Can someone tell me how to do it?!

Thanks a lot.

Last edited by SuMu (2010-02-18 09:22:07)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#2 2010-02-18 07:31:19

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: (solved) custom field: name and email / section

Check out this TXP Tip I think a couple of the examples may be helpful.

Offline

#3 2010-02-18 07:33:59

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

Re: (solved) custom field: name and email / section

Thanks Jonathan, it is helpful! :-)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#4 2010-02-18 08:05:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: (solved) custom field: name and email / section

Does this help?

<txp:if_custom_field name="author_url">Author: <a href="<txp:if_custom_field name="author_url">"><txp:custom_field name="author" /></a>
<txp:else />
<txp:if_custom_field name="author">Author: <txp:custom_field name="author" /></txp:if_custom_field>
</txp:if_custom_field>

<txp:if_custom_field name="author_email"> - eMail: <txp:email email='<txp:custom_field name="author_email" />' linktext="Contact author" title="Send author an Email" />

my pone rang when writing this. So Jonathan beat me to it.

Last edited by colak (2010-02-18 08:08:05)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2010-02-18 08:25:49

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

Re: (solved) custom field: name and email / section

It works now, Thank You all!

Last edited by SuMu (2010-02-18 10:30:55)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

Board footer

Powered by FluxBB