Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-05 08:15:57

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

New Image and Thumbnail Attributes

Kind of a mish mash of ideas. I’ve been working on my re-reboot, but have found a few things that would be convenient (less hacking).

1. Add class to txp:thumbnail. txp:image already has it, but txp:thumnail doesn’t. It’s easy enough to edit /textpattern/publish/taghandlers.php on about line 100, but it is kind of a hassle for upgrades.

2. Make poplink="0" create a normal link to the image:

<code>
<txp:thumbnail id=“87” poplink=“0” />

produces:
<a href=”/img/87.png” title=“view full size”><img alt=“A fire breathing tortoise” src=”/img/87t.png” /></a>
</code>

3. Perhaps it’s textile too, but I’d like to be able to link around the txp:thumnail and txp:image tags. This makes things more flexible if you relocate your images folder, so you won’t have to change all of your links. Here’s an example:

<code>
<txp:thumbnail id=“87” />:http://example.com
</code>

4. Finally, it would be convenient to have the option to store thumbnails in a separate directory. I like keeping things separate (I’m weird), so ideally images would be stored in /img/ and thumbnails in a subdirectory, /img/t/ for example.

Offline

#2 2006-05-05 14:22:00

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: New Image and Thumbnail Attributes

Deldin,
You may take a look <a href=“http://forum.textpattern.com/viewtopic.php?id=15032”>here</a> as we are all working toward new ideas.

We are working on trying make img tags opperate more like article tags.
It will be a write up, some examples, and perhaps a patch, but it only happens
when the community participates together :)

Thx.

>Edit: added the link to the thread

Last edited by colak (2006-05-05 16:43:28)


Offline

#3 2006-05-06 09:32:22

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: New Image and Thumbnail Attributes

Thanks—I’ve read through it initially (a few months ago), but it’s a massive thread! It might be easier to split the thread into a separate/embedded forum board though. Seems it’d be simpler.

Offline

#4 2006-05-06 12:59:09

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: New Image and Thumbnail Attributes

deldin,
Its difficult to keep a forum thread clean, however, it doesn’t help to start new ones, and in the end, can clutter the issue. You may adjust your preferences to have more posts per page and then use the search function of your browser to look for keywords in long posts?

either way, a “repeat” post like this can clog things up. That’s why I suggested you read the thread I mentioned, because we are addressing these very issues.

See what I’m saying?

Thanks for your thoughts,

Matthew


Offline

#5 2006-07-04 15:24:35

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

Re: New Image and Thumbnail Attributes

  1. Added in r1392.
  2. That should already work.

Offline

#6 2006-09-18 07:37:57

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: New Image and Thumbnail Attributes

Mary wrote:

That should already work.

I tried <txp:thumbnail id="4" poplink="0" /> again, but only the image is returned. 4.0.3, clean install (no modifications to taghandlers.php).

Offline

#7 2006-09-18 14:37:44

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

Re: New Image and Thumbnail Attributes

I misunderstood what you meant, don’t know where my head was.

What would be the purpose of doing that?

Offline

#8 2006-09-19 00:24:32

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: New Image and Thumbnail Attributes

For me, poplink “0” seems like it should link the thumbnail to the image.

  • <txp:thumbnail id="4" poplink="0" /> – link the thumbnail to its parent image/full image
  • <txp:thumbnail id="4" poplink="1" /> – popup
  • <txp:thumbnail id="4" /> – display the thumbnail only

Offline

Board footer

Powered by FluxBB