Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2009-08-22 12:27:19

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

Re: soo_image: simple yet powerful image tags

cloudcontrol wrote:

I’m using the ‘l10n’ multi-language plugin, and I’m guessing this may be what’s causing an error with the page links

That may well be the problem — I don’t know enough about MLP Pack to say just now. I’ll have a look later today. Is there anything else you are doing to manipulate URLs?

Edit: Having had a preliminary look, I think the incompatibility depends on having both MLP Pack and installing Txp in a subdir. Still looking for a solution …

Last edited by jsoo (2009-08-22 20:08:17)


Code is topiary

Offline

#42 2009-08-22 20:08:34

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

Re: soo_image: simple yet powerful image tags

Inline help for the l10n plugin states:

It does not support subdirectory installations.

I don’t know if this is still the case or not, but am I correct that you are trying this with a subdir install? Any other issues?


Code is topiary

Offline

#43 2009-08-23 00:28:22

cloudcontrol
New Member
Registered: 2009-08-22
Posts: 2

Re: soo_image: simple yet powerful image tags

Yes, it’s a subdir installation, I guess… I wonder if I subdomain it instead, if that would make a difference? Thanks for the tip – I’ll follow up on it and report back! :)

Edit: I changed it over to a subdomain

http://gruppo.projectbump.com/en/gallery/

and the linking works fine! Thanks for the hint with MLP.

Do you have any advice on the nesting of soo_image_select tags? I tried it, but it seems to repeat the same images over and over, as there’s no offset attribute. Also, I’m guessing it will wreack havoc with the pagination?

What I’m trying to achieve is:

Row of thumbs (x 6)

—————————— ( <hr / > )

Row of thumbs (x 6)

—————————— ( <hr / > )

Row of thumbs (x up to 6)

One more thing – is there any way of detecting how many pages the gallery will have, and generating a “page 1 / 5” output?

Thanks!

Last edited by cloudcontrol (2009-08-23 05:36:07)

Offline

#44 2009-09-10 22:33:10

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

Re: soo_image: simple yet powerful image tags

cloudcontrol wrote:

Do you have any advice on the nesting of soo_image_select tags? […] is there any way of detecting how many pages the gallery will have

Sorry I missed this one when you posted it. At present soo_image does not offer either of these features. I will give it some thought. In the meantime, you might be able to accomplish the first by counting images with <txp:variable />.


Code is topiary

Offline

#45 2009-09-11 02:00:25

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

Re: soo_image: simple yet powerful image tags

cloudcontrol: just brainstorming your request. For the page count, I could easily add a tag analogous to the soo_page_count tag in soo_page_numbers. That would allow output such as “Page x of y”, customized as you wish.

For splitting output into rows, while I could add an attribute to control this, I’d prefer not to because I want to avoid attribute bloat. However, I have an idea for a generalized tag (would be a separate plugin) for counting things and inserting text/markup at designated points. I’m envisioning something like this:

<txp:soo_count_stuff limit="6" break="hr"><txp:soo_image /></txp:soo_count_stuff>

So the above code would go into the image form and add an <hr /> after every sixth image.

Edit: Brilliant — I think I’ve just invented zem_nth!

Last edited by jsoo (2009-09-11 02:17:01)


Code is topiary

Offline

#46 2009-09-18 14:11:57

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

Re: soo_image: simple yet powerful image tags

Version 1.0.b.2 just released.

  • Fixed bug in soo_image_date (was displaying incorrect date or time zone in some cases)
  • New tags:
    • soo_thumbnail_url
    • soo_thumbnail_height (Txp 4.2.0 or higher)
    • soo_thumbnail_width (Txp 4.2.0 or higher)
    • soo_image_page_count
  • Changed behavior: now uses (optionally) soo_plugin_pref. The old soo_plugin_prefs is no longer supported.

soo_image_page_count is in response to the request from cloudcontrol, above.


Code is topiary

Offline

#47 2009-12-08 14:32:55

Kreeltje
Member
Registered: 2008-12-23
Posts: 21

Re: soo_image: simple yet powerful image tags

Is it possible to use this without thumbnail? So with the original image resized like this:

<txp:soo_image width="220" link_rel="shadowbox" />

The output is now the resized thumbnail..(so blurry).

Thank you

Offline

#48 2009-12-12 16:47:05

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

Re: soo_image: simple yet powerful image tags

Sorry for the delayed reply. Using the link_rel attribute will always cause soo_image to output a linked thumbnail, so currently this is not possible directly. You could “manually” assemble the HTML, as in:

<a href="<txp:soo_image_url />" rel="shadowbox"><img src="<txp:soo_image_url />" width="220" alt="" /></a>

Code is topiary

Offline

#49 2009-12-14 13:03:21

Kreeltje
Member
Registered: 2008-12-23
Posts: 21

Re: soo_image: simple yet powerful image tags

Ah okay, Thanks for the reply!

Offline

#50 2010-01-16 13:45:42

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

Re: soo_image: simple yet powerful image tags

Hi,

i use soo-image for showing my images but on a gallery section it does not what i want it to do.
I use this code in a form trying to display my thumbs and when i click on one, ColorBox has to do the rest. (sort of lightbox clone):

<a href="<txp:soo_image_url />" rel="example2"><img src="<txp:soo_thumbnail_url />" /></a>
example2 is the way to get ColorBox to work.
I use soo_image_select on a page to link to this form. But the href and the scr attributes are empty.

What am i doing wrong?

Steven.

Last edited by afewimages (2010-01-16 13:46:23)

Offline

Board footer

Powered by FluxBB