Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Alternative article navigation
Hi everyone,
I found a pretty and usable nav solution at Ecco Shoes
Mouse over next or prev button shows a list of newr or older articles (depending on their sort method).
Someone has any idea to reproduce this on Textpattern?
I try to solve, bu I think I need help :)
Offline
Re: Alternative article navigation
Have you looked at smd_horizon?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Alternative article navigation
With smd_horizon I can use article image in links but it publish only 1 step article. Right?
What I’m trying to do is publish a list of previous and next articles (if exist) relative to current. With a range value I can limit the output. A sort criteria maybe be usefull too.
For example:
In Fruits section I’ll see:
- Apple
- Banana
- Cocco
- Lemon
- Peach
If I enter Cocco’s page I will see:
Previous- Banana
- Apple
Next - Lemon
- Peach
The sort order is inverted in the prev list…
I think isn’t a small work…
Last edited by wornout (2011-07-21 10:30:31)
Offline
#4 2011-07-21 18:37:30
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Alternative article navigation
Still hoping for the day when article_custom accepts negative offset :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Alternative article navigation
wornout wrote:
With smd_horizon I can use article image in links but it publish only 1 step article. Right?
Ah yes, you’re right. Out of the box it (well, Txp) only has the capacity to store one article either side of the current article.
Of course with some smd_query magic inside your <txp:smd_next />
and <txp:smd_prev />
you should be able to make use of <txp:article_id /> to figure out what the next article is and then pull out limit
articles that occur after this ID (inclusive). Similarly on the previous side you can pull out limit
articles before the previous ID (again, inclusive) assuming you ORDER BY date and take the current section / category into account.
Actually, that’s a pretty nifty request so I might consider seeing if it’s possible to build that functionality into the plugin. Not convinced it can be done due to Txp’s limitations, but if it’s possible I’ll find a way :-)
Last edited by Bloke (2011-07-21 19:09:45)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Alternative article navigation
adi_image_tab does something similar.
Offline
Pages: 1