Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [superseded] rah_aimage

#13 2012-03-27 10:55:38

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [superseded] rah_aimage

Yes, there is no multiple image support. I would highly advice using Textpattern’s native image tags instead, and discourage using rah_aimage. The plugin is old, coming from the time before Textpattern’s current image tags or multiple image support, and is very much replaced by other projects and has been rendered useless. All support for rah_aimage will be officially dropped in next few months.

Please, see:

E.g.

<txp:images>

	<txp:variable name="protocol"><txp:rah_function 
		call="substr" 
		subject='<txp:image_info type="alt" />' 
		starts="0" 
		ends="4" 
	/></txp:variable>

	<txp:if_variable name="protocol" value="http">
		<a href="<txp:image_info type="alt" />">
			<txp:thumbnail />
		</a>
	<txp:else />
		<txp:thumbnail />
	</txp:if_variable>
</txp:images>

Offline

#14 2012-03-27 12:12:35

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: [superseded] rah_aimage

got it work that way, but somehow it puts break tag between images… :(

is there easier solutions than you just wrote? another plugin….? could smd_random_banner do it…?

Last edited by Gallex (2012-03-27 12:26:36)

Offline

#15 2012-03-27 12:41:00

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: [superseded] rah_aimage

yes, it can! ;)

Offline

#16 2012-03-27 15:42:04

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,734
Website

Re: [superseded] rah_aimage

but somehow it puts break tag between images… :(

Just use <txp:images break=""> ... for your opening tag.


TXP Builders – finely-crafted code, design and txp

Offline

  1. Index
  2. » Archives
  3. » [superseded] rah_aimage

Board footer

Powered by FluxBB