Textpattern Forum

You are not logged in. Register | Login | Help

#1 2012-12-16 09:19:55

Gallex
Member
Registered: 2006-10-08
Posts: 747

display list of images

need your little help

my code:

<txp:images category="header-image" sort="date asc" wraptag="div" break="" class="header-image" />

and it outputs

<div class="header-image">
<a href="http://www.aleksandri.ee/swe/?c=header-image&amp;context=image&amp;p=110"><img src="http://www.aleksandri.ee/images/110t.jpg" alt="parkla" /></a>
<a href="http://www.aleksandri.ee/swe/?c=header-image&amp;context=image&amp;p=111"><img src="http://www.aleksandri.ee/images/111t.jpg" alt="admin" /></a>
</div>

but i need it to output like this (full images, without a attribute):

<div class="header-image">
<img src="http://www.aleksandri.ee/images/110.jpg" alt="parkla" />
<img src="http://www.aleksandri.ee/images/111.jpg" alt="admin" />
</div>

Offline

#2 2012-12-16 09:32:58

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,140
Website

Re: display list of images

Hi Gallex

try this one:

<txp:images category="header-image" sort="date asc" wraptag="div" break="" class="header-image">
<txp:image />
</txp:images>

Offline

#3 2012-12-16 09:36:48

Gallex
Member
Registered: 2006-10-08
Posts: 747

Re: display list of images

great! thank you rabah!

Last edited by Gallex (2012-12-16 09:37:08)

Offline

Board footer

Powered by FluxBB