Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#46 2006-04-24 19:35:49

rajo
Member
Registered: 2004-03-13
Posts: 43

Re: hak_article_image

is there a way to get this plugin to work with lightbox 2.0? would it just need to output a rel=“lightbox” parameter in the img tag?

Offline

#47 2006-04-24 19:45:26

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

Re: hak_article_image

The problem is that the plugin makes use of the TXP internal thumbnail and image functions for future proofing and the built in thumbnail function will not accept the rel attribute. This will change in the future to accommodate some added functionality but in the meantime you could look into upm_image

Last edited by hakjoon (2006-04-24 19:52:04)


Shoving is the answer – pusher robot

Offline

#48 2006-04-25 15:37:56

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

Re: hak_article_image

hakjoon: you were right about the Live status supressing errors. thanks, i’m new to this and didn’t think of that. so that’s good enough for me.

Offline

Board footer

Powered by FluxBB