Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2006-11-09 10:45:41

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

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

I just realized that Textpattern 4.0.4 behaves different with upm_image.

The code <txp:upm_image image_id="2113" form="lightbox" /> is, when used in 4.0.4 in the body of an article, enclosed with a p-tag. This p-tag was not included by textile in 4.0.3.

This results in changing behavior of image templates.

Offline

#122 2006-11-09 16:39:19

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

Matthias, try putting a single space character before that tag. I haven’t upgraded to 4.0.4 yet, but in past versions adding the space would mysteriously prevent Textile from mistreating my template tags like that. You might also try enclosing it in a div of a width that matches your image. A span might work as well.

Offline

#123 2006-11-09 19:14:27

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

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

Well, this is a workaround, but not really a solution. I think, this is a textile bug, which I should file there….

Or is Mary probably planning to insert also a “blank” before her tags with the popper?

Offline

#124 2006-11-09 19:28:39

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

So it worked, then?

Not a bad idea about including the extra space in the popper, by the way.

Offline

#125 2006-11-09 19:51:59

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

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

Customers who bought this item also bought wet_for_each_image. ;-)

Offline

#126 2006-11-09 21:33:44

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

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

That’s pretty slick, wet. It’s kind of like wet_thumbfilter on steroids. :-)

Offline

#127 2006-11-10 19:47:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

If you were gonna go that route, why not use the plugin’s own built-in customization option instead of layering another plugin on top of it?

Anyway, report Textile bugs here.

Offline

#128 2006-11-11 00:33:39

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

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

Mary wrote:

If you were gonna go that route, why not use the plugin’s own built-in customization option instead of layering another plugin on top of it?

As I haven’t found a way for upm_image to render lists of images/thumbs (besides article images), I might have missed something. How’s that supposed to be done?

Offline

#129 2006-11-11 00:58:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

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

Ah, manually created/static galleries. Yeah, it won’t do that.

Offline

#130 2006-11-12 16:43:25

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

Just updated couple of sites to 4.04 and upgraded to 0.45 upm_image – upm_img_popper 1.1 too.

Notice that the “insert image” has disappeared from the write tab? Anyone else seen this? Its not a cache issue – I flushed it out on all sites.

Is it supposed to be like this until the 4.04 upm_plugin upgrades? (assuming Mary is doing that!!)

Offline

#131 2006-11-12 18:35:27

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

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

There’s an interim patch.

Offline

#132 2006-12-28 00:17:22

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

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

Hi Mary,
(or someone else who can help me;-)

I am trying to display product shots, the id’s of the images are stored in custom fields.

I have the following code in the page that displays the article and the images….:
<txp:output_form form="header" />
<div id="content">
<!-- Menu -->
<div class="left">
<txp:output_form form="menu" />
<ul class="articlemenu">
<txp:article_custom allowoverride="0" form="articlelist" pgonly="0" section="aktuelle-ausstellung" sort="Title asc" />
</ul>
</div>
<!-- Text -->
<txp:article id="5" />
</div><!-- Content -->
<txp:if_custom_field>
<div id="photos">
<txp:article form="photolist" />
</div> <!-- photos -->
</txp:if_custom_field>
<txp:output_form form="footer" />

Then the form photolist: (article)

<txp:if_custom_field name="Bild 1">
<txp:asy_wondertag><txp:upm_image form="photo" id="<txp:custom_field name="Bild 1" />"/></txp:asy_wondertag>
</txp:if_custom_field>
<txp:if_custom_field name="Bild 2">...(goes on for all custom fields...)

And the photo form: (misc)
<div>
<div class="caption">
<h3><txp:upm_img_name /></h3>
<txp:upm_img_caption wraptag="p"/>
</div>
<img src="<txp:upm_img_full_url />" alt="<txp:upm_img_alt escape="html"/>" />
</div><br />

The way I am doing it now, nothing at all is showing… What am I doing wrong?

Last edited by dl33 (2006-12-28 00:19:59)

Offline

Board footer

Powered by FluxBB