Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: can zem_article_image be used to make linked thumbs?
Hmmm.. I’m getting that to happen on Safari but not Firefox. I’ll have to see what’s going on with that.
Here’s the issue with making it so you can style the popup window to add a close button and things like that. You would have to create a section to have a plain layout to use in the popup (like say a popup section). You would then need to specify that the popup call a page in that section.
As far as making is how up on the same page it wouldn’t be very hard to make it pass a $p variable so you could use <txp:image_display />
to display the full size image.
I wonder if maybe the best thing would be to allow the user to specify a custom output_form that way you could really build whatever link scenario you want.
I’ll have to see how involved that is to do. I haven’t created a plugin that uses forms yet.
Shoving is the answer – pusher robot
Offline
#26 2005-08-24 04:42:11
- rajo
- Member
- Registered: 2004-03-13
- Posts: 43
Re: can zem_article_image be used to make linked thumbs?
well, sounds like a custom popup is out of the picture, which is fine, not that important. Getting it to work with image_display would be perfect though. It seems like all these things should be written into the article_image tags in textpattern, but I guess that’s what plugins are for.
Offline
#27 2005-08-24 05:03:29
- cpk
- Member
- Registered: 2005-08-07
- Posts: 62
Re: can zem_article_image be used to make linked thumbs?
Patrick… YOU DA MAN!!!
Thanks so much. This works awesome! You even got more in there than I expected with the offset attribute.
Thanks again!
cpk
Offline
Re: can zem_article_image be used to make linked thumbs?
rajo wrote:
well, sounds like a custom popup is out of the picture, which is fine, not that important. Getting it to work with image_display would be perfect though. It seems like all these things should be written into the article_image tags in textpattern, but I guess that’s what plugins are for.
Let me try some stuff out. I had a couple thoughts on how to do this last night. I’ll have to see if they work.
Shoving is the answer – pusher robot
Offline
#29 2005-08-24 22:38:30
- cpk
- Member
- Registered: 2005-08-07
- Posts: 62
Re: can zem_article_image be used to make linked thumbs?
Patrick,
How would I assign an ID or Class to a < div> or < p> wrapttag assigned within the hak_article_thumb? Wrap tag works but I can’t seem to assign an ID or Class to it.
cpk
Offline
Re: can zem_article_image be used to make linked thumbs?
I updated the plugin to allow that. It wasn’t using doWrap() before, now it is. The help will point you to how to do it.
I’m still working on something for rajo.
update: I left some debugging code in 0.2 make sure you got 0.2.1
Last edited by hakjoon (2005-08-25 01:09:27)
Shoving is the answer – pusher robot
Offline
Re: can zem_article_image be used to make linked thumbs?
I updated the plugin to Version 0.3 which add the ability to create a link that passes the image id to the page (displaylink=“1”), which can then be picked up by <txp:image_display />
or <txp:hak_article_image urloverride="1" />
Shoving is the answer – pusher robot
Offline
Re: can zem_article_image be used to make linked thumbs?
Oh great! This sounds like it might do something of what I have been looking for. I am trying to wrap my head around the displaylink attribute. Is there some way this can be used to help generate a list of article images (ie, <code>Image <a href=“id1”>1</a>, <a href=“id2”>2</a>, <a href=“id3”>3</a>…</code>) where each is a link to an identical page displaying the appropriate image associated with a given article?
Last edited by Jeff_K (2005-09-05 18:54:04)
Offline
Re: can zem_article_image be used to make linked thumbs?
The displaylink attribute links the thumbnail to the same page passing the image id. That image id can then be picked up by <txp:image_display />
or by <txp:hak_article_image urloverride="1" />
The urloverride attribute tells it to use the image id in the url (?p=id).
Are you looking for something that will create text links to the full size image in another page template/section? (i’ve been thinking of adding the later since I have a different photo section page template)
Shoving is the answer – pusher robot
Offline
Re: can zem_article_image be used to make linked thumbs?
Text links /are/ what I am looking for. Basically a given (portfolio) article would output its primary image as well as a list (as “1 2 3 4..”) of alternate images. After advice from kemie, I am thinking I might use custom fields to store the URL of each alternate image associated with an article. The trick is then how to display these images. I was thinking that I could just use a range of different forms (one for each custom field) that would only display the image urls from a given custom field.
That said, passing the image ID selected from the list of alternate images to <code><txp:image_display /></code>sounds much more attractive.
Offline
Re: can zem_article_image be used to make linked thumbs?
That sounds pretty doable. If the images are in textpattern you could just store the id in the custom field and use a form to build the links the way you want them. Would actually work pretty well. Then just pass the id through the url as the p
parameter and <txp:image_display />
will just pick it up.
Shoving is the answer – pusher robot
Offline
Re: can zem_article_image be used to make linked thumbs?
harkjoon, I have been attempting to implement this, with some success. I can’t seem to get image_display to pick up image ids defined through the <code>p</code>. Would this work in messy mode? I have been trying urls like http://www…..com/index.php?id=3?p=4. I have a hunch this is wrong though.
If I have id’s stored in custom fields and I want “sometext” to like to produce a link to the same page with a different p parameter (X), I would think that I could just be able to enter <code><a href=“p=X”>sometext</a></code>. After trying for a few hours, I gave up and tried to link “sometext” to the same article outputted through a different form, but that proved difficult too..
any thoughts?
Last edited by Jeff_K (2005-09-08 09:27:00)
Offline