Textpattern Forum

You are not logged in. Register | Login | Help

#1 2006-11-09 19:39:53

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,091
Website

wet_for_each_image: Lists images by employing user supplied markup

Okay, you are definitely allowed to yawn: YAGP.

But this one’s different as it doesn’t doesn’t even render images: wet_for_each_image is a kind of master plugin whose only competence is to select images eligible for display, and then it delegates subsequent tasks to a worker markup whose duty is doing all of the hard work.

More information and download. Usage and code samples

Offline

#2 2006-11-09 21:21:23

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

Hey, this is pretty handy.


Shoving is the answer – pusher robot

Offline

#3 2006-11-10 00:45:29

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

It surely is, I was scratching my head until I checked out your sample page. This is nice and clean and extensible. Thanks Robert!

Last edited by soulship (2006-11-10 00:47:08)

Offline

#4 2006-11-10 05:49:54

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,091
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

As a clarification to Logoleptic’s comment added over there: wet_for_each_image and wet_thumbfilter are not competing in the same application area but are rather complementary. wet_thumbfilter iterates through selected articles, while wet_for_each_image runs over the images collection.

Offline

#5 2006-11-10 16:08:37

hakjoon
Moderator
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,631
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

Have you thought of the having category attribute default to the current category if in a category page? That would make it perfect for category based galleries. Could always use asy_wondertag, already for that though.

In fact I think this combined with upm_image meet most of the desired more powerful Image tag requests


Shoving is the answer – pusher robot

Offline

#6 2006-11-10 16:41:09

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

Have you thought of the having category attribute default to the current category if in a category page?

I would second this request. This would eliminate then need for gallery plug-ins and any .js flavor gallery script you want could be used (and changed or updated) easily.

Last edited by soulship (2006-11-10 16:41:21)

Offline

#7 2006-11-11 00:48:55

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,091
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

hakjoon wrote:

Have you thought of the having category attribute default to the current category if in a category page?

Not thought of it yet, but it makes sense… Will fire up the trusty Eclipse. Stay tuned.

Offline

#8 2006-11-12 05:21:20

jagorny
Member
From: Portland, OR
Registered: 2006-08-24
Posts: 38
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

I am very excited to try and integrate this into livesearch results…

Can you image having this pull up images whose category is a search term as well as articles? Ahh if only images were keyworded also… and links. BOOOOOO.

Yay for the plugin though…

Offline

#9 2006-11-12 07:32:14

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,091
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

hakjoon wrote:

Have you thought of the having category attribute default to the current category if in a category page?

Try this.

I’ve added a form attribute, too. This would allow “computed/dynamic” worker markup by getting the form name from a custom field or even elsewhere – one sick mind could imagine lots of possibilites with that.

Offline

#10 2006-11-12 17:04:55

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,050
Website

Re: wet_for_each_image: Lists images by employing user supplied markup

hakjoon wrote:

In fact I think this combined with upm_image meet most of the desired more powerful Image tag requests

You’re right. Thanks! Now I can do what I was hoping to do in a much simpler way.

Offline

Board footer

Powered by FluxBB