[pmwiki-users] Creating a link to the next page

Randy randy at brownragfilms.com
Thu Jan 10 16:20:32 CST 2008


Liz,

Wikitrails are great, but I don't know any way to make them give you  
the words "next page" and "previous page".

Ideally you'd use something like: [[{$previous_link_in_trail} | <<  
previous page ]] [[{$next_link_in_trail} | next  page >> ]]

Since there are no page variables like $previous_link_in_trail, if you  
have to have those words appear, you could hard-code a section of an  
index page like this:

The pages in this sequence are
P1: YourGroup.YourFirstPage
P2: YourGroup.YourSecondPage
P3: YourGroup.YourThirdPage

[[#PreviousNextLinks]]
(:if equal {*$FullName} {$:P1}:) [[ {$:P2} |next page>>]]
(:elseif equal {*$FullName} {$:P2}:) [[ {$:P1} |<<previous page ]] -  
[[ {$:P3} |next page>> ]]
(:elseif equal {*$FullName} {$:P3}:) [[{$:P2} |<<previous page ]]
(:ifend:)
[[#PreviousNextLinksend]]

Then you can put (:include MyIndexPage#PreviousNextLinks:) on each  
page in the sequence. It's more of a maintenance headache than  
Wikitrails, so I would use the Wikitrails instead if that works for you.

Good luck,

Randy


On Jan 10, 2008, at 2:53 PM, Liz Castro wrote:

> Hi, I've been wandering about the documentation looking for ways to
> do this, but didn't find any.
>
> Is there a way to define a sequence of pages and then create a link
> to the "next page" or to the previous page?
>
> thanks,
> Liz
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20080110/29a457c2/attachment.html 


More information about the pmwiki-users mailing list