Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
txp:email with an image as the link
Hello,
The title says it all really: I’d like an <a href="mailto:...."><img src="..."/></a>
only using a txp:email
tag—using an img src
or txp:image
—to remain spam-proof. Sounds easy, might be, can’t find how…
Thanks!
Hicks.
Offline
#2 2009-10-19 21:14:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:email with an image as the link
Would this work?
<txp:email email="john.doe@example.com" linktext='<txp:image id="123" />' title="Send me an Email" />
Offline
Re: txp:email with an image as the link
It’s been a while since I’ve been at the coding table, so I think it’s simply that you can’t have txp:
markup in articles… oh dear.
What I really need, then, is the spam-proof mailto:
equivalent of !/common/textist.gif(Textist)!:http://textism.com
.
?
h.
Offline
Re: txp:email with an image as the link
Try this:
<txp:email email="foo@example.com"> !/images/bar.gif! </txp:email>
Offline
#5 2009-10-20 08:31:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:email with an image as the link
wet wrote:
Try this:
Dammit! Can <txp:email>
be used as a container tag as well??
Offline
Re: txp:email with an image as the link
Offline
#7 2009-10-20 09:26:47
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:email with an image as the link
D’oh! Textbook updated.
Offline
Re: txp:email with an image as the link
I swear I tried that yesterday, why does it work today? Code writing gap, cold bugs in my brain… probably had a / in the wrong place.
Thanks
h
Offline
Pages: 1