Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2008-10-19 11:05:02

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

Re: wet_for_each_image: Lists images by employing user supplied markup

Hi Wet, using v4 AND v5 of this plugin, I get errors in Safari if I add the form attribute:

<txp:wet_for_each_image category="my-category" form="article-images" >
<txp:image id="{id}" />
</txp:wet_for_each_image>

If I remove the form attribute, the error disappears and the images display.

Error message: The error was: “Operation could not be completed. (kCFErrorDomainCFNetwork error 302.)”

Last edited by jstubbs (2008-10-19 11:11:43)

Offline

#38 2008-10-19 12:00:22

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

Re: wet_for_each_image: Lists images by employing user supplied markup

Looks like something Safari-specific. What’s the result with other browsers? Any entries in the webservers error.log at the time you hit that message? What’s inside article-images?

Offline

#39 2008-10-19 13:02:11

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

Re: wet_for_each_image: Lists images by employing user supplied markup

That error comes up on FF 3.03 too. Seems to choke when it comes across an error in a script.

Anyway, I solved the problem using this instead (using upm_image):

<txp:wet_for_each_image category="my-category">
<txp:upm_image form="large_images" image_id="{id}" type="image" />
</txp:wet_for_each_image>

Offline

#40 2009-02-26 19:01:01

lreynolds
Member
From: Burlington, ON, Canada
Registered: 2007-02-09
Posts: 30
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

I’m putting together a gallery and I have it mostly working, but I’d like to limit the number of images (5) it shows for each category for the main gallery page. Here is what I have so far:

<txp:if_category>
<h2><span><txp:category title="1" type="image" /></span></h2>
<p><a href="/photos/">Back to full gallery</a></p>
<txp:wet_for_each_image sort="name asc">
<txp:upm_image form="lightbox" image_id="{id}" />
</txp:wet_for_each_image>
<txp:else />
<h2><span>Photo Gallery</span></h2>
<txp:wet_for_each_image sort="category asc">
<txp:upm_image form="lightboxcat" image_id="{id}" />
</txp:wet_for_each_image>
</txp:if_category>

And the form used is this:

<txp:if_different>
<h2><span><a href="?c=<txp:upm_img_category />"><txp:upm_img_category title="1"/></a></span></h2>
<p><a href="?c=<txp:upm_img_category />">View all <txp:upm_img_category title="1" /> photos</a></p>
</txp:if_different>
<a rel="lightbox" href="<txp:upm_img_full_url />"
title="<txp:upm_img_caption escape="html" />">
<img src="<txp:upm_img_thumb_url />"
width="<txp:upm_img_thumb_width />"
height="<txp:upm_img_thumb_height />" 
alt="<txp:upm_img_alt escape="html" />" /></a>

Putting a limit on the wet_for_each_image tag just limits the total number of images, so I get 5 in the first category, and none in the next one. I understand that this is how it is supposed to work, I’m just not understanding the theory behind these tags to get them to do what I want. The reason I’m using if_different on the form is so that the client can create new image categories, otherwise I’d just hard code the image categories. Hope that makes sense.

Offline

#41 2009-03-08 22:35:48

antonhor
New Member
Registered: 2009-03-05
Posts: 7

Re: wet_for_each_image: Lists images by employing user supplied markup

Hy!
Im using the plugin on a site and what i’m trying to achieve is to have a page on which an article is displayed that has the custom field 1 defining the category of the images to display.( i limit it to one image) and on the right of the image i have some txt links displaying numers that would have to link to the same page where the main image changes. iu managed to display the big image and the links but i dont know how to link them.
Main page display article code:

<txp:wet_for_each_image limit=“1” image_id=“215” category=”<txp:rei_show_custom customid=“1”/>” />
(displays the big image)
<txp:wet_for_each_image wraptag=“ul” break=“li” form=“wethumbs” category=”<txp:rei_show_custom customid=“1”/>” />
(displays the numbers that would have to change the main picture ( the numbers are written as the caption of the image)

im using the form wethumbs:

<txp:permlink ><txp:upm_image image_id=”{id}”><txp:upm_img_caption /></txp:upm_image></txp:permlink>

but nothing happens, the page refrehes and the image remains the same. I know that permalink isnt the right way maybe but i don’t know any other. Any ideas how to do that?
Thanx

Offline

#42 2010-02-20 03:07:52

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

Howdy – I’m pulling in a number of images by using a category. However, I’d like to be able to rearrange the sequence. Is there a way I can custom sort it by id? (e.g. 5,3,4,2,6 ) Can I enter the sequence in a custom field and use it somehow?

edit: i guess I can use smd_gallery

Last edited by JanDW (2010-02-23 23:20:48)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

Board footer

Powered by FluxBB