Re: prev/next-post-link in blog.xsl?
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 11.6.2005 11:03 Uhr, Alain Petignat wrote: > Hi all > > Is there an easy way to include a link to the previous/next post when > viewing a single post? > > One could then switch sequentially through all your posts. > > If you do not know what i mean, see here: > http://codeconsult.ch/bertrand/archives/000523.html : > > « Summer of Code | Main | osx has been running on Intel processors for > five years... » > > Something like that :) Mmmh, currently not really implemented. I think the best approach would be to use some helper php functions and call them, where you want them from the xslt. AFAICS you can't do it, without at least one more (most certainly even two) more sql queries to get the posts before and after the current post, since we don't know nothing about the surrounding posts, when we look at a single one. Maybe a subplugin would be the best approach. if you need further help, just ask, I really don't know the best solution either right now chregu > > Thanks for hints > Alain. -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms