Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2010-03-29 23:43:01

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

Version 1.0.b.3 available. One minor bugfix, plus new pagination attribute for soo_image_select to allow better pagination control when you use more than one soo_image_select tag on the same page.

Direct download

Complete guide


Code is topiary

Offline

#77 2010-03-31 19:26:34

afewimages
Member
Registered: 2009-12-23
Posts: 33

Re: soo_image: simple yet powerful image tags

Wow, jsoo,

that’s fast! Thanks again. I will install it immediately.

Steven.

And yes, btw: can i install ‘over’ the old one?

Last edited by afewimages (2010-03-31 19:28:11)

Offline

#78 2010-03-31 19:53:35

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

afewimages wrote:

can i install ‘over’ the old one?

Yes, it’s a minor update, fully compatible with the previous version.


Code is topiary

Offline

#79 2010-03-31 20:00:01

afewimages
Member
Registered: 2009-12-23
Posts: 33

Re: soo_image: simple yet powerful image tags

Jsoo,

I installed it but see no changes. Still the Next link at the end of the gallery?

Steven

Last edited by afewimages (2010-03-31 20:18:10)

Offline

#80 2010-03-31 22:42:30

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

Add pagination="0" to the soo_image_select tag that makes the {4 from gallery} bit.


Code is topiary

Offline

#81 2010-04-09 17:50:56

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: soo_image: simple yet powerful image tags

I’m loving this plugin, especially its intuitive analogy to <txp:article /> tags.

I’m wondering if there is any way to, rather than select via image_id, actually output an image’s id? Or, alternatively, count <txp:soo_image_select /> iterations, so I could output a unique, sequential id with the images, like id="photo-1", etc.

Offline

#82 2010-04-09 23:36:51

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

Thanks for the kind words. Adding soo_image_id is a trivial edit, so it’s now available in version 1.0.b.4.


Code is topiary

Offline

#83 2010-04-12 17:36:10

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: soo_image: simple yet powerful image tags

Awesome! Thanks so much for the addition and the lightning-fast response. Do you have a Paypal account I could donate to? Looked for a button on your site, but didn’t see one…

Offline

#84 2010-04-12 21:10:03

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

Thanks Nora — sentiment much appreciated, consider that a more than adequate donation.


Code is topiary

Offline

#85 2010-06-20 07:10:47

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: soo_image: simple yet powerful image tags

Hi Jeff,

Your plugin looks great but I must be having “one of those days”. My code is:

<txp:soo_image_select id="9,5,7,17,8,18,19,6,10,20,21,22">
	<txp:soo_image width="0" />
	<txp:soo_image_caption />
</txp:soo_image_select>

but the <img /> tags that are generated still contain the width & height attributes.

… and I have a request. Could the <txp:soo_image_caption /> have a wraptag attribute? Some of my images have captions, some don’t. So if there’s a caption then output it inside the wraptag, if not, output nothing.

Thanks,

Adi

Last edited by gomedia (2010-06-20 11:18:14)

Offline

#86 2010-06-20 12:36:14

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

Adi: I’m on the road today and will look into this tomorrow.


Code is topiary

Offline

#87 2010-06-21 19:42:20

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

Adi: thanks for the bug report and request. Version 1.0.b.5 now available; <txp:soo_image width="0" /> should now work as expected, and all of the tags for outputting image info now accept standard wraptag, class, and html_id attributes.


Code is topiary

Offline

#88 2010-06-21 23:15:27

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: soo_image: simple yet powerful image tags

jsoo wrote:

Version 1.0.b.5 now available; <txp:soo_image width="0" /> should now work as expected, and all of the tags for outputting image info now accept standard wraptag, class, and html_id attributes.

Jeff, you’re a star, thanks. Does the job very nicely.

All the best,

Adi

Offline

#89 2010-06-29 11:08:28

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: soo_image: simple yet powerful image tags

Hi Jeff,

Just been trying soo_image within an article form. Have I got this right?

Standard TXP:

<txp:article>
	<txp:image />
</txp:article>

Using soo_image:

<txp:article>
	<txp:soo_image_select>
		<txp:soo_image width="0" />
	</txp:soo_image_select>
</txp:article>

I always hope that plugins reduce the amount of typing! Am I missing something?

Cheers,

Adi

Offline

#90 2010-06-29 12:05:53

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_image: simple yet powerful image tags

If you’re looking for the equivalent of this:

<txp:article>
	<txp:article_image />
</txp:article>

You can use this as a shortcut:

<txp:article>
	<txp:soo_image />
</txp:article>

because soo_image, outside a soo_image_select and without identifiers (i.e., name or id attribute) automatically picks up the (first) article image.


Code is topiary

Offline

Board footer

Powered by FluxBB