Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2006-03-24 06:25:10

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: hak_article_image

A very useful plugin indeed! Is there a way by which I can hide the thumbnail when the full image is shown? (If there isnt can you please create some conditionals for similar functionality?)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#32 2006-03-24 13:25:27

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

Re: hak_article_image

I’m not quite understanding what you want.


Shoving is the answer – pusher robot

Offline

#33 2006-03-24 13:49:38

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: hak_article_image

I’m using <code><txp:hak_article_thumb displaylink=“1” /></code>. On clicking the thumbnail generated by this tag I get the full sized image + the thumbnail. How do I hide the thumbnail so that only the full sized image is shown?


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#34 2006-03-24 14:10:58

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

Re: hak_article_image

ok I think I get it. Do you use this with many thumbnails on the page? Would you want only the thumbnail for the image being displayed full size to be hidden or all the thumbnails?


Shoving is the answer – pusher robot

Offline

#35 2006-03-25 04:36:17

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: hak_article_image

Right now I’m using only one thumbnail. But I’m planning to use multiple thumbnails in future. So can I request for an option to hide all thumbnails?


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#36 2006-04-20 17:40:42

mattgilbert
Member
Registered: 2006-03-23
Posts: 70

Re: hak_article_image

Hi, Thanks for the plugin.

I’m getting this error message:
<code>tag_error <txp:hak_article_image offset=“1”/> -> Warning: join(): Bad arguments. on line 1417</code>
when I use an offset of 1 and there is only one article image. Obviously this wouldn’t work, since there aren’t any images to show, but it would be nice if it would just not show anything instead of returning an error message. Alternatively, is there a conditional to test whether or not there is more than one article image?

Offline

#37 2006-04-20 19:34:00

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

Re: hak_article_image

I love this plugin! Still the best portfolio plugin out there. Thanks for the updates.

Edit: Small request…

Could you add an anchor (<code><a name=“hakImage”></a></code>) to the output tag and generated URLs? Name it ‘hakImage’ or something. The reason is, when you flick between pictures, the page will reload and you get taken to te top of the page.

If your hak_article_image tag is lower down on the page (i.e. not at the top), its frustrating having to scroll down each time you click a thumbnail.

With an anchor applied to the article image that you output, you can add that to the generated URL’s from the thumbnails, i.e.

http://website.co.uk/portfolio/item/?p=8#hakImage

So you get taken to the image when you click on a thumbnail.

Would be good if you could specify the name of the anchor too!

Last edited by rossharvey (2006-04-20 20:20:28)

Offline

#38 2006-04-20 20:56:55

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

Re: hak_article_image

Rossharvey: that’s a good idea. I’ll see about adding that.

mattgilbert: Do you get that error even with the production status set to live? Not that it should generate a error but I’m just wondering since the Live setting tends to suppress warnings. I’ll see about adding a check in there.


Shoving is the answer – pusher robot

Offline

#39 2006-04-20 21:35:38

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

Re: hak_article_image

hakjoon wrote:

Rossharvey: that’s a good idea. I’ll see about adding that.

Excellent – thanks :¬)

Last edited by rossharvey (2006-04-20 21:35:51)

Offline

#40 2006-04-21 12:18:18

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

Re: hak_article_image

One thought, You can use the attributes attribute to specify other attributes for the wraptag, I use it to add ID’s to the wrap tag. Would that work as far a specifying he anchor for the output tag? I use it like this.

bc..
<txp:hak_article_thumb limit=“1” wraptag=“p” attributes=“id=‘theID’” />

I still need to add it to URLs in the links but I’m wondering if we can get away without one more tag attribute.

Last edited by hakjoon (2006-04-21 12:18:31)


Shoving is the answer – pusher robot

Offline

#41 2006-04-21 13:00:43

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

Re: hak_article_image

Unfortunately not, the anchor is a tag itself.

You need to prefix the plugin output with:

<code><a name=“anchorname”></a></code>

The tag doesn’t need to surround the rest of the code.

Offline

#42 2006-04-21 13:26:00

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

Re: hak_article_image

Can’t you just point anchor links to ID’s? I thought you could.


Shoving is the answer – pusher robot

Offline

#43 2006-04-21 13:31:15

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

Re: hak_article_image

Actually, yes you can. But its the ‘name’ tag, not ID tag that you point it to.

Offline

#44 2006-04-21 13:46:17

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

Re: hak_article_image

I’ve used successfully pointing it to an ID, but either way you can make the attributes param actually spit out whatever you want That’s kind of what’s neat about it :)

bc..
<txp:hak_article_thumb limit=“1” wraptag=“p” attributes=“id=‘theID’ name=‘theName’” />

Still need to add a param to specify that it be attached to urls.


Shoving is the answer – pusher robot

Offline

#45 2006-04-21 13:47:20

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

Re: hak_article_image

Nice stuff, looking forward to the update :¬)

Offline

Board footer

Powered by FluxBB