Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » Links

#1 2008-11-06 16:47:19

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Links

I have this code:

<txp:linklist break="li" category="textpattern" sort="linksort asc" wraptag="ul" class="shadetabs add" form="linklist" />

and my form is this <txp:link />

but I want my links to behave like this: <a href=""><img src="url" /> Link</a>

anyway to do this? what do I need to add to my form? x


~ Cameron

Offline

#2 2008-11-06 17:43:08

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Links

After look at this in more detail, it would seem the only way to do this, would be to replicate the <txp:link /> tag using other tags and code? Am I correct in assuming this, or way off base? And how would one do that if so. x


~ Cameron

Offline

#3 2008-11-06 17:53:12

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

Re: Links

Would the following help?

<a href="<txp:link_url />"><img src="url" /> <txp:link_name escape="html" /></a>

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

Offline

#4 2008-11-06 21:18:02

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Links

colak wrote:

Would the following help?

<a href="<txp:link_url />"><img src="url" /> <txp:link_name escape="html" /></a>

works perfect, thank you. x


~ Cameron

Offline

  1. Index
  2. » How do I…?
  3. » Links

Board footer

Powered by FluxBB