Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#409 2011-09-18 00:37:32

dhritzkiv
Member
From: Toronto, Canada
Registered: 2011-02-23
Posts: 14
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Well of course! How did I miss that? Thank you for catching that. :)

Offline

#410 2013-08-03 23:26:00

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 204
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hi! I saw in Mary’s website her plugin upm_image is no longer available, and it is now abandoned. But, how could I do this without her plugin?

<img alt="" src="<txp:upm_img_full_url />" width="645" height="363" /><txp:upm_img_caption wraptag="p" />

or this:

<txp:upm_article_image form="carouselItem" break="li" type="image" />

Thanks in advance.

Offline

#411 2013-08-04 04:12:35

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

robhert:

<txp:images><img alt="" src="<txp:image_url />" width="645" height="363" /><txp:image_info type="caption" wraptag="p" /></txp:images>
<txp:images form="carouselItem" break="li"  />

Find out more about all the core image tags here:
http://www.textpattern.net/wiki/index.php?title=Category:Image_Tags

Offline

#412 2013-08-04 15:37:26

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 204
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hi @photonomad ! Thank you for your answer!

I’ve changed my code, but it is not working the same way upm_image does.

First, when I use upm_image this way:

<txp:upm_article_image form="carouselItem" break="li" type="image" />

with form=“carouselItem”:

<img alt="" src="<txp:upm_img_full_url />" width="645" height="363" /><txp:upm_img_caption wraptag="p" />

I get this: (a different image per list)

<li><img alt="" src="01.jpg" width="645" height="363" /></li>
<li><img alt="" src="02.jpg" width="645" height="363" /></li>
<li><img alt="" src="03.jpg" width="645" height="363" /><p>Caption</p></li>

Now. When I use this:

<txp:images form="carouselItem" break="li"  />

I get:

<li><img alt="" src="01.jpg" width="645" height="363" /></li>
<li><img alt="" src="01.jpg" width="645" height="363" /></li>
<li><img alt="" src="01.jpg" width="645" height="363" /></li>

And, if I add (change the form=“carouselItem”):

<txp:images><img alt="" src="<txp:image_url />" width="645" height="363" /><txp:image_info type="caption" wraptag="p" /></txp:images>

I get this:

<li><img alt="" src="01.jpg" width="645" height="363" /><br /><img alt="" src="02.jpg" width="645" height="363" /><br /><img alt="" src="03.jpg" width="645" height="363" /><p>Caption</p></li>
<li><img alt="" src="01.jpg" width="645" height="363" /><br /><img alt="" src="02.jpg" width="645" height="363" /><br /><img alt="" src="03.jpg" width="645" height="363" /><p>Caption</p></li>
<li><img alt="" src="01.jpg" width="645" height="363" /><br /><img alt="" src="02.jpg" width="645" height="363" /><br /><img alt="" src="03.jpg" width="645" height="363" /><p>Caption</p></li>

The question at hand is: How could I make <txp:images /> to act like <txp:upm_image />?

Thank you in advance.

Last edited by robhert (2013-08-04 15:41:51)

Offline

#413 2013-08-04 16:46:51

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

Re: [plugin] [ORPHAN] upm_image: More powerful image display

What a HTML output do you need? How do you define what images?

Offline

#414 2013-08-04 16:57:15

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 204
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Well, the output I need is what upm_image produces. What I want is to see if <txp:images /> do the same that ump_image.

<li><img alt="" src="01.jpg" width="645" height="363" /></li>
<li><img alt="" src="02.jpg" width="645" height="363" /></li>
<li><img alt="" src="03.jpg" width="645" height="363" /><p>Caption</p></li>

Like my example above.

Thank you

Offline

#415 2013-08-04 17:51:38

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

Re: [plugin] [ORPHAN] upm_image: More powerful image display

If you only need width and height attributes, then, for example, with coma separated article images:

<txp:if_article_image>
	<txp:images auto_detect="article" break="li"><txp:image /></txp:images>
</txp:if_article_image>

If you need more attributes, then with <txp:images /> and <txp:image_info />:

<txp:if_article_image>
	<txp:images auto_detect="article" break="li" form="carouselItem" />
</txp:if_article_image>

And the form carouselItem, for example, etc.:

<img src="<txp:image_url />" width="<txp:image_info type="w" />" height="<txp:image_info type="h" />" alt="<txp:image_info type="alt" />" />

Offline

#416 2013-08-04 22:21:58

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 204
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Thank you very much photonomad and GugUser! It works! Only I’ve added:

<img src="<txp:image_url />" width="<txp:image_info type="w" />" height="<txp:image_info type="h" />" alt="<txp:image_info type="alt" />" /><txp:image_info type="caption" wraptag="p" />

And everything works fine.

Thank you guys!

Offline

#417 2013-08-17 22:45:07

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,959
Website Mastodon

Re: [plugin] [ORPHAN] upm_image: More powerful image display

why does this tag <txp:images name=“mynews.png” /> show the thumbnail version of the image rather than the full size?

Last edited by bici (2013-08-17 22:45:56)


…. texted postive

Offline

Board footer

Powered by FluxBB