Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-07 20:30:05

Distrahera
Member
Registered: 2008-09-20
Posts: 30

wet_for_each_image definite image use

Hi!

Im using the nice “wet_for_each_image” plugin to make a list of images using a certain form (its a gallery). And I find the descriptions very useful but for one detail.

I can use it like this in my page:

<txp:wet_for_each_image form=“gallery-item” category=“Avatar,News image” />

but what do I write in my form to show the dynamic image? I would suppose its something like:

<txp:wet_image />

Is there support for this in the plugin or will I have to get another plugin to make this happen?

Offline

#2 2008-10-07 22:09:07

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

Re: wet_for_each_image definite image use

You could use it in tandem with upm_image. :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-10-08 05:51:26

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Re: wet_for_each_image definite image use

maniqui wrote:

You could use it in tandem with upm_image. :)

Okay, so there is no support for it in itself? I seems to be a very fundamental function for the plugin so I found it hard to believe its simply not possible.

Offline

#4 2008-10-08 08:02:53

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: wet_for_each_image definite image use

From my POV, this is a feature – not an ommision. YMMV.

Offline

#5 2008-10-08 11:23:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: wet_for_each_image definite image use

maniqui wrote:

You could use it in tandem with upm_image. :)

Yes, like wet’s 2nd example shows. That’s the simplest solution.

Alternatively, if it’s not overkill, you can try smd_gallery which was originally based on wet_for_each_image and allows you to use replacement tags in the form so you could do:

<txp:image id="{id}" />

(or txp:thumbnail of course).

Whether that helps, I’m not sure.

Last edited by Bloke (2008-10-08 11:23:45)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2008-10-08 12:18:28

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Re: wet_for_each_image definite image use

Thanks all.
Wet, I see why this would be a feature. Though I think of it more like if I have a car, its obvious I need gas to drive it. I suppose weather the car-vendor supplies me with it or not is details.

I think I will go with the upm_image plugin =) I hope it does the trick.

Offline

Board footer

Powered by FluxBB