Jump to:

3433 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Next and Previous Page links

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1572 Views
  • eceers
    Avatar
    Community Member
    24 Posts

    Next and Previous Page links Link to this post

    Howdy,

    I have a list of pages in a tree something like this

    • Project 01
      • - Example 01
      • - Example 02
      • - Example 03
      • - Example 04

    • Project 02
      • - Example A1
      • - Example A2
      • - Example A3
      • - Example A4

    Is there a Method in Silverstripe that allows me to be on the "Example 02" and display links the Previous (Example 01) and Next (Example 03) pages and when I get to the Example 04 page I can hide the Next link as I would the Previous link on Example 01 page.

    I've tried looking into my own SQL statement to retreive it, this is roving quite out my league as I'm not really sure on what I'm doing.

    Any help wold be greatly appreciated and if I'm asking a simple question from something I've missed in the Documentation I apologise.

    Thanks in advance

  • eceers
    Avatar
    Community Member
    24 Posts

    Re: Next and Previous Page links Link to this post

    Sorry for bothering people with this. A quick 2 second search here on the forum dug up this http://doc.silverstripe.org/doku.php?id=recipes:previousornext

    SOR-TED.

    1572 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.