Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-01 17:54:32

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

More powerful image tag

I’ve looked, and I don’t see much mention of it around, but I could really use an image tag that can produce lists and not just single images.

It could work exactly the same way that <txp: article> works:

  1. Using forms
  2. Outputting multiple images
  3. Category and section aware: (images don’t get assigned sections, Duh!)
  4. Sort them by whatever criteria you like.
  5. Outputting caption, title, alt-text fields according to the form.

Seems like a very natural and elegant way to give the image tag a little more oomph!

Last edited by mrdale (2006-02-01 19:22:08)

Offline

#2 2006-02-01 19:11:32

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: More powerful image tag

I’m hoping to do this with upm_image. Life just keeps getting in the way lately.

What are you thinking in terms of section aware?

I was hoping to implement it so it could take as input:

  • image ID or list of image IDs
  • image URLs or list of URLs
  • lists of combined URLs and IDs
  • category

Source of input could be specified in the tag. One’s I thought of were:

  • article image field
  • URL
  • Any custom field

Maybe set a precedence so you could do article_image unless something is in the URL or something like that.

And forms support which currently already in upm_image, plus thumbnail, popup etc.

I’m hoping to separate it from the img_popper and make it it’s own plugin.

Anything else you can think of?

Last edited by hakjoon (2006-02-01 19:16:31)


Shoving is the answer – pusher robot

Offline

#3 2006-02-01 19:18:42

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: More powerful image tag

> hakjoon wrote:
>What are you thinking in terms of section aware?

My bad… images don’t have sections assigned to them, silly. :)
Forget that I mentioned it. What you have sounds good…

BTW: Don’t you think this would be a good way to patch the standard image tag?

Last edited by mrdale (2006-02-01 19:21:20)

Offline

#4 2006-02-01 20:01:24

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: More powerful image tag

mrdale wrote:
BTW: Don’t you think this would be a good way to patch the standard image tag?

We can always submit it as a patch once all bugs and features are worked out. I know the patch guidelines seem to look favorably at items that are already working hacks or plugins.

In some ways it’s faster to prototype features as a plugin because revisions don’t need to be tied to official releases. Specially for public side stuff it’s just as easy to do it as a plugin. Admin side is another story.


Shoving is the answer – pusher robot

Offline

#5 2006-02-13 06:50:44

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

Re: More powerful image tag

<cite>hakjoon wrote:</cite>

<blockquote>

I’m hoping to separate it from the img_popper and make it it’s own plugin.

Anything else you can think of?

</blockquote>

Will you announce in this thread when you have a working prototype? This would be perfect for something I’m working on right now.

Offline

#6 2006-02-13 07:40:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: More powerful image tag

<a href=“http://forum.textpattern.com/viewtopic.php?id=3618”>glx_gallery</a> returns image lists. I’m using a slightly hacked version of it in <a href=“http://hblack.net/hblack/”>this</a> site. Having said that. It would be wonderful for the plugin’s functionality to be integrated in txp


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2006-02-13 14:58:23

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: More powerful image tag

Logoleptic wrote:
Will you announce in this thread when you have a working prototype? This would be perfect for something I’m working on right now.

I’ll make a point of announcing it here when I have something.


Shoving is the answer – pusher robot

Offline

#8 2006-02-13 15:52:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: More powerful image tag

How do you tell glx image to return a list, or is it section and category aware based on the url?

Offline

#9 2006-02-13 16:47:02

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: More powerful image tag

> mrdale wrote:

> How do you tell glx image to return a list, or is it section and category aware based on the url?

I use the plugin on a per article basis
Here’s a sample call

<code><txp:glx_gallery category=“2002soloshow” usecaption=“1” pop=“1” /></code>

where <code>2002soloshow</code> is an image category.

The plugin works with Dean’s <a href=“http://forum.textpattern.com/viewtopic.php?id=1228”>dca_pop</a>

I guess an easy method would be to use it in a custom field: ie

<code><txp:if_custom_field name=“custom1”><txp:glx_gallery category=”<txp:custom_field name=“custom1” />” usecaption=“1” pop=“1” /></txp:if_custom_field></code>
… but I did not test this to make sure it works

Last edited by colak (2006-02-13 16:51:39)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2006-02-13 23:52:53

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: More powerful image tag

I created a textbook feature request area for image handling related thoughts. I thought it might be good to start consolidating a lot of the info scattered around the forum.

If anyone needs logins drop me a message.


Shoving is the answer – pusher robot

Offline

#11 2006-02-14 08:14:28

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: More powerful image tag

Maybe a good, user friendly, way for multiple images on a per article basis would be to have another field in the Advanced Options (Image category), similar to the “Article image” field but instead of a single image it would output all images in an image category. (choice of thumb with popups or full size would be cool)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#12 2006-02-14 17:25:03

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

Re: More powerful image tag

hakjoon: Thanks for starting the feature request section; that’s a great idea. :)

colak: Try wet_thumbfilter. I was able to get the photo gallery I was working on up and running with a combination of wet_thumbfilter and upm_img_popper.

Last edited by Logoleptic (2006-02-14 17:27:13)

Offline

Board footer

Powered by FluxBB