Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-08 03:52:24

elstrausso
Member
Registered: 2008-09-25
Posts: 49
Website

Modifying Prev/Next to Pull In Article Image Thumbnail

Setting up a portfolio gallery on my site, and I’m attempting to use “wet_article_thumb” to add an article thumbnail to the Previous/Next Links (exactly how Flickr Prev/Next interface is set up). Basically, I just want to preview the first Article Image in the next /Prev page of the section I’m In. Here is my site link: http://thedept.com/index.php?id=14

My code (right now, it only shows the current article image, and not the image to the Prev/Next images):

<li class=“prev”><txp:link_to_prev showalways=“0”>Prev<txp:wet_article_thumb /></txp:link_to_prev></li>

<li class=“next”><txp:link_to_next showalways=“0”>Next<txp:wet_article_thumb /></txp:link_to_next></li>

I’m not sure how to hack the wet_article_thumb to accomplish this, or if there is another solution out there. The Flickr approach to Next/Prev is a great interface, and it makes alot of sense. Hope that there are others out there on TXP forums that share the same design aesthetic to practical interface design.

Hope to hear from the Txp group, and Thanks in advance for you help.

Best,
Elstrausso

Last edited by elstrausso (2008-10-08 06:48:07)

Offline

#2 2008-10-10 17:36:54

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: Modifying Prev/Next to Pull In Article Image Thumbnail

elstrausso –
Tricky problem! One thought would be to put use the name of the image as the title. Like image_1, image_2…that way you could output <li class="prev"><txp:link_to_prev showalways="0">Prev<img src="path/to/<txp:prev_title />.jpg" /></txp:link_to_prev></li>

Would something like that accomplish what you’re going for? You could always use a custom field to store the real title of the image.

Another (much more complex) possibility is outputting a 3-article-long article list and then styling the each one differently using zem_nth? Haven’t really thought it through but it seems like you could work it out.

Good luck!

Offline

#3 2008-10-10 18:30:05

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Modifying Prev/Next to Pull In Article Image Thumbnail

jmd_neighbor might work for you.

Offline

#4 2008-10-12 02:17:01

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: Modifying Prev/Next to Pull In Article Image Thumbnail

Oh wow – another brilliant plugin I wasn’t aware of. Looks like just what elstrausso needs!

Offline

Board footer

Powered by FluxBB