Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2006-11-01 21:10:30

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

Re: hak_article_image

0.5.2

Fixes issues with the various box scripts out there


Shoving is the answer – pusher robot

Offline

#86 2006-11-11 02:38:07

szac
Member
From: Detroit-ish
Registered: 2004-09-18
Posts: 50

Re: hak_article_image

Awesome! Thank You.

Offline

#87 2006-12-08 16:19:33

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: hak_article_image

Best image plugin about, cheers for the update dude.

Offline

#88 2007-01-21 01:04:44

kevin12345
Member
Registered: 2006-06-05
Posts: 10

Re: hak_article_image

Is there anyway to pass a textpattern tag through the linktitle attribute? I use a custom field for my image “captions,” because I sometimes need to use different text for two articles that use that same image. I’d like to do something like this:

<txp:hak_article_thumb link=“1” linktype=“image” rel=“lightbox” linktitle=”<txp:custom_field name=“Cutline” />” />

I’m sure I might be able to hack the plugin to get this effect, but my knowledge of php is limited.

Thanks

Never mind. Just discovered asy_wondertag

Last edited by kevin12345 (2007-01-21 01:17:04)

Offline

#89 2007-02-16 16:44:41

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: hak_article_image

Great plug-in, thanks.

Quick question: I have a photoblog up and running-ish, but wanted to add multiple images to articles which are then displayed as one large main image with the reminding images shown underneath as clickable thumbnails, which then become the main image when clicked.

I’ve installed hak_article_image and the following code into a form:

<h2><txp:title /></h2>
<txp:hak_article_image />
<txp:hak_article_thumb linktype="page" />
<txp:body />

But it not working quite right, any advice on what I need to add?

Offline

#90 2007-02-16 16:52:41

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

Re: hak_article_image

You need to do

<h2><txp:title /></h2>
<txp:hak_article_image urloverride=‘1’ limit='1'  />
<txp:hak_article_thumb link='1' linktype="page" />
<txp:body />

you need link='1' in order to specify the linktype. The urloverride parameter tells it to use the image passed in the url. The limit tells it to only show one image. Otherwise you will get two rows with all the images. See if that does what you want.

You could also add urlhide=‘1’ to the hak_article_thumb tag which will hide the image referenced in the URL from the list of thumbnails.


Shoving is the answer – pusher robot

Offline

#91 2007-02-16 17:10:01

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: hak_article_image

Thank you for your help Patrick, that works perfectly.

One final thing while I’m about it, to add a caption to the main image I thought I should use the linktitle='txp:caption', but this doesn’t seem to be its purpose. Is there another way of achieving this?

Offline

#92 2007-02-16 17:25:09

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

Re: hak_article_image

There’s no way to do it with this plugin. I’d have to implement some sort of form handling for it which I keep thinking of doing but I can’t decide if it’s a good idea or if it would complicate the plugin too much

I wrote a little plugin that pulled captions for the image currently being passed by the URL awhile ago that should work. But it won’t work for the first image unless you pass the id in the url. It was designed to work with <txp:image_display /> but it should work with this setup too.

hak_image_display_caption.txt

I might be able to make an update that will make that work a little better. I haven’t checked this guy in awhile as it was never a really distributed plugin so let me know if it spits out any errors or anything (it was written for RC3)


Shoving is the answer – pusher robot

Offline

#93 2007-02-16 17:43:23

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: hak_article_image

Thanks again.

Of course, if hak_article_image had a caption display ability built in it would be pretty much perfect! I installed the hak_image_display_caption plug-in, it displays the caption but throws out the following error:

tag_error <txp:hak_image_display_caption/> -> Warning: Missing argument 3 for dowrap() on line 2308

Offline

#94 2007-02-16 17:47:18

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

Re: hak_article_image

Ok I forgot to update the distribution, I have a fix for that but let me see if I can come up with something more elegant. That plugin does an extra DB query which should be unnecessary if I set things up right.


Shoving is the answer – pusher robot

Offline

#95 2007-02-16 18:13:28

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: hak_article_image

Great, thanks for your time.

Offline

#96 2007-02-27 14:56:49

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: hak_article_image

Excellent, thanks :¬)

Offline

Board footer

Powered by FluxBB