Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
(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)
Offline
Re: (solved) custom field: name and email / section
Check out this TXP Tip I think a couple of the examples may be helpful.
Offline
Re: (solved) custom field: name and email / section
Thanks Jonathan, it is helpful! :-)
Offline
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
Re: (solved) custom field: name and email / section
It works now, Thank You all!
Last edited by SuMu (2010-02-18 10:30:55)
Offline