Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Navigate using article image thumbnail
I recently redesigned my wife’s art site and integrated it using TXP.
The functionality is all working, but when you click on an individual work you’ll see the ability to mouse through the list using <txp:link_to_next>
and <txp:link_to_prev>
. Inside those container tags is an article that is supposed to be pulling the next and previous article’s image thumbnail. I’m using <txp:article form="article-thumb-nav" limit="1" pgonly="0" offset="1" status="4" />
.
Currently, the link works, but the image being pulled is from the existing article. Any thoughts on how to pull the previous/next article image?
Offline
#2 2008-04-28 03:23:33
- Arno Simon
- New Member
- From: Germany
- Registered: 2008-04-26
- Posts: 4
Re: Navigate using article image thumbnail
i asume that the form you use get’s only the id of the current article and not the ids for the prev/next-article.
so the full code of your “article-thumb-nav”-form respective the <txp:link_to_next>-tag and <tpx:link_to_prev>-tags would be intresting to have a look.
regards
Arno
Last edited by Arno Simon (2008-04-28 03:24:57)
Offline
Re: Navigate using article image thumbnail
form that makes the call
<div id="nav-image">
<div class="nav-image-prev">
<p><txp:link_to_prev>Prev<txp:article form="article-thumb-nav" limit="1" offset="1" pgonly="0" status="4" /></txp:link_to_prev></p>
</div>
<div class="nav-image-next">
<p><txp:link_to_next><txp:article form="article-thumb-nav" limit="1" pgonly="0" offset="1" status="4" />Next</txp:link_to_next></p>
</div>
</div>
article-thumb-nav <txp:article_image thumbnail="1" />
Last edited by top5design (2008-04-28 03:31:20)
Offline
Re: Navigate using article image thumbnail
Hi Shane,
I think the only way to achieve what you want is using this brand new plug-in: jmd_neighbor: Pipe neighboring articles into an article form
Offline
Re: Navigate using article image thumbnail
Genius. Thanks maniqui…that appears to be what I’m looking for.
Offline