Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#205 2008-04-03 21:21:23

conspirator
Member
From: Chicago
Registered: 2007-03-31
Posts: 35
Website

Re: hak_article_image

First of all —- thanks to all of you who wrote to try to help me. Unfortunately, with all of your suggestions, I still can’t get this thing to work.

Mike, you bring up an interesting point regarding the “”, so I copied your example code with no luck.

Hanz, I tried your suggestion with both link=“1” AND link=“0” to no avail.

…maybe I’m using it incorrectly. I have it in an article form. I want to dynamically flow in articles and a thumbnail of their image. Just so you can see it, here is what I have in the article form:

<txp:hak_article_thumb link="0" /> <h3><txp:permlink><txp:title /></txp:permlink></h3> <txp:excerpt /><txp:permlink>...more</txp:permlink>

Let me know what you think.

Last edited by conspirator (2008-04-03 21:21:36)

Offline

#206 2008-04-04 15:29:13

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: hak_article_image

Hi conspirator,

It wasn’t really a suggestion for helping you.
I just thought you may have the same problem as me.
Now we both have our own problem i think :)

I justed switched to upm_image, which gave me anything i needed. I used it like that:

<a rel="lightbox" href="<txp:upm_img_full_url />" title="<txp:upm_img_caption />" class="img_shadow">
 <img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" />
</a>

Last edited by hanz (2008-04-06 17:44:10)

Offline

#207 2008-04-10 23:38:45

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

Re: hak_article_image

Sorry guys been away. class only gets applied to the wraptag. That’s just standard txp behavior. If you want to apply a class the thumbnail you have use a form. This message has some sample code.

The attribs thing that hanz is seeing is a bug that was discovered a couple days before I went away so I haven’t had a chance to fix it yet. I think it only shows up in debugging mode though.

I have to look into the default link behavior and see what’s going on there.


Shoving is the answer – pusher robot

Offline

#208 2008-04-15 09:48:49

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: hak_article_image

Hi hakjoon,

thanks for your replay anyway.

hakjoon wrote:

I think it only shows up in debugging mode though.

Dou! I hadn’t notice that, my fault.

It’s a great flexible plugin! And now that i know how to handle it, i will use it again if upm_image won’t fit my needs.

Cheers, Hannes

Offline

#209 2008-04-16 11:42:10

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: hak_article_image

Hi,

Is it possible to create an image gallery with this plugin, by having only one image shown on the Web page with Next/Back buttons to cycle through other images?

I’d appreciate any help/direction to achieve this.

Thanks!

Last edited by husainhk (2008-04-16 12:13:08)

Offline

#210 2008-04-16 17:17:11

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

Re: hak_article_image

It’s not really setup to support that kind of navigation. The image being displayed has no knowledge of the other images.

It could be done with javascript.


Shoving is the answer – pusher robot

Offline

#211 2008-04-23 12:56:11

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: hak_article_image

Is there an example somewhere, that shows the thumbnails and where each opens the enlarged image in a lightbox? I’d like to see how the plugin is used to set this up and the resulting XHTML output.

Thanks in advance to those who can share this :)

Cheers,
Husain

Offline

#212 2008-04-27 14:52:34

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: hak_article_image

I can’t get <txp:hak_article_image_link />, wrapped around some other content, to correctly link to the original article image. All the links just point to http://domain.com/images. I only have one article image specified. Any ideas?

Last edited by aswihart (2008-04-27 14:55:17)

Offline

#213 2008-04-27 21:39:43

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

Re: hak_article_image

can you post the code?


Shoving is the answer – pusher robot

Offline

#214 2008-04-27 22:14:50

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: hak_article_image

<txp:hak_article_image_link>link</txp:hak_article_image_link> placed on an article page with one associated article image.

Last edited by aswihart (2008-04-27 22:15:01)

Offline

#215 2008-04-27 22:21:03

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

Re: hak_article_image

<txp:hak_article_image_link> needs to be inside a form that you call from a <txp:hak_article_image> tag. Put your code in a form an call it using <txp:hak_article_image form=“myform” /> see if that works.


Shoving is the answer – pusher robot

Offline

#216 2008-04-27 23:14:14

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: hak_article_image

Ok, actually I’m not using the hak_article_image tag. I’m using lam_dynamic_image, and all I want to do is create a link from a (smaller) dynamically generated article image to the original (larger) article image. lam_article_image doesn’t have any link functionality. I tried using asy_wondertag like this, to no avail:

<txp:asy_wondertag><a href="<txp:article_image/>"></txp:asy_wondertag><txp:lam_article_image width="630" /></a>

Not sure why I can’t get such a seemingly simple thing to work. If you have a solution, please share!

Last edited by aswihart (2008-04-27 23:14:50)

Offline

Board footer

Powered by FluxBB