Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Modifying Prev/Next to Pull In Article Image Thumbnail
jmd_neighbor might work for you.
Offline
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