Previous Next

By gerdami gerdami

Description

How do I add 'next' and 'previous' links at the bottom of the page?

Code

[[div style="float:left; width:50%; "]]
[[<]]
[[[PreviousPage|<< Previous]]]
[[/<]]
[[/div]]
[[div style="float:right; width:50%;"]]
[[>]]
[[[NextPage|Next >>]]]
[[/>]]
[[/div]]
~~~~~

Posted in the forum by Paul Edney Paul Edney

In action



Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by gerdami

Newline in lists - 16 Feb 2012 01:26


Rate this solution

If you think this solution is useful — rate it up!

rating: +11
pages tree
Vittek Vittek 01 Jun 2009 15:08

There is a more automatic code here:
NextPage / PreviousPage Module

I can't find a way to comment on that page, so I'll do it here.
Choosing categories to navigate is ok, but I don't really use them. What would be useful for me, and I hope a lot more people, is to navigate the pages that share the same parent page.
I'd gladly see this implemented as an alternative way of navigating my wiki.

by Vittek Vittek , 01 Jun 2009 15:08
next and previous
wowstrategy wowstrategy 02 Jul 2008 19:24

this technique requires hardcoding in the previous and next page, right? is there someway to dynamically decide on these pages? what if you don't know the path the user has taken?

by wowstrategy wowstrategy , 02 Jul 2008 19:24
Arahyacinth Arahyacinth 23 Jun 2008 05:44

This technique works wonderfully! Very neat and functional, looks great on the page too. Thank you!

by Arahyacinth Arahyacinth , 23 Jun 2008 05:44
page revision: 6, last edited: 16 Feb 2012 01:32
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /