Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2011-12-28 18:51:41
- opensa
- Member
- Registered: 2008-11-12
- Posts: 46
[es-es] link a imagen de artículo
Hola gente,
Cómo puedo linkear una imagen de artículo?
Tengo este código:
<txp:article_image thumbnail=“1” />
<txp:body />
Intenté agregarlo con
<a href=’<txp:article_image />’ class=“image”><txp:article_image thumbnail=“1” />
</a>
<txp:body />
Pero no funciona.
Alguien lo ha hecho?
gracias
Offline
#2 2011-12-28 19:07:05
- milosevic
- Member
- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Re: [es-es] link a imagen de artículo
Prueba esto, a mi me funciona:
<txp:if_article_image>
<txp:images><a href="<txp:image_url/>" class="image"><img src="<txp:image_url thumbnail="1"/>"/></a></txp:images>
</txp:if_article_image>
Last edited by milosevic (2011-12-28 19:27:11)
<txp:rocks/>
Offline
#3 2011-12-29 13:38:14
- opensa
- Member
- Registered: 2008-11-12
- Posts: 46
Re: [es-es] link a imagen de artículo
Gracias Milosevic, anduvo perfecto!
Recomiendo que se utilice con efectos jquery, como lightbox.
feliz año
Offline
Pages: 1