Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
List of links with images
Hello everyone,
I searched the forum again and again, but i didn’t find a solution, so I ask directly. Sorry if this is a duplicated one.
I need to associate an image (i.e the logo of the site) to every link in textpattern.
I didn’t find a plugin doing this.
I tried and put the code for the image in the description of the links, but it doesn’t work.
Any hints?
thank you in advance
Simone (Italy)
Offline
Re: List of links with images
Hi.
Putting the code for the image in the description field for the link should work.
Could you post the code you used?
Offline
Re: List of links with images
the three of them:
Servizi di innovazione in Agricoltura Socialmente Responsabile
<txp:image id=“13” /> La cooperativa La Tappa di Arezzo
<img src=“http://www.artre.coop/images/19.jpg” width=“226” height=“63” alt=“Epaca” />
the first one is the textile code.
Last edited by midmood (2009-02-05 13:49:18)
Offline
#4 2009-02-05 19:23:53
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: List of links with images
You can use html in the description field, but you may need to use the escape attribute.
Offline
Re: List of links with images
this is the form outputting my list of links:
<p><txp:link /><br />
<txp:link_description escape=“html” /></p>
anyway, according to the link you posted, the default value for the “escape” attribute is “html
the code linking to the images is created directly by txp so…. i really don’t know :-(
Offline
#6 2009-02-05 22:47:42
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: List of links with images
This works for me: in the description field use the html tag:
<img src="/images/2.png" />
In the links form:
<txp:link_description escape="" />
Offline
Re: List of links with images
oh, great! :-)
you are the one, thank you!
Offline
Pages: 1