Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2014-06-03 19:45:46

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: txp:if_first_image error

madzzoni wrote #281199:

But the <txp:variable.../> tag doesn’t work!

This works:

<txp:variable name="first_image" value='<txp:images category="hende" limit="1" break=""><txp:image_info type="id" /></txp:images>' />

<ul class="clearing-thumbs clearing-feature" data-clearing>
	<txp:images category="hende" break="">
		<li<txp:if_variable name="first_image" value='<txp:image_info type="id" />'> class="clearing-featured-img th"</txp:if_variable>>
			<a class="th" href="<txp:image_url />"><img src="<txp:image_url thumbnail="1" />" alt="<txp:image_info type="alt" />" data-caption="<txp:image_info />" /></a>
		</li>
	</txp:images>
</ul>

Offline

Board footer

Powered by FluxBB