By 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
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!
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.
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?
This technique works wonderfully! Very neat and functional, looks great on the page too. Thank you!