Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-02-05 12:36:28

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

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

#2 2009-02-05 13:20:30

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2009-02-05 13:47:52

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: List of links with images

the three of them:

agyra 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

#5 2009-02-05 22:39:54

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

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

#7 2009-02-05 23:04:31

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: List of links with images

oh, great! :-)
you are the one, thank you!

Offline

Board footer

Powered by FluxBB