MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Help with pagination in a publishing page layout

  Asked By: Harshita    Date: Nov 21    Category: MOSS    Views: 932

Has anyone tried using pagination in a page layout.

I want to create an article page with previous and next buttons. When users
click on the previous button takes them to previous article page and next to the
next article page.



13 Answers Found

Answer #1    Answered By: Anthony Rutledge     Answered On: Nov 21

Since all publishing pages (article pages and otherwise) the problem is
going to be figuring out what previous and next mean. Is it the previous
page in the pages library? Or just the previous article page? It should be
possible, but the code is going to be more complex than a simple button
saying get previous item.

Answer #2    Answered By: Heena Nagori     Answered On: Nov 21

Once a user clicks on an article, the previous and next buttons will always be
visible on the page. If she/he clicks on next, this takes them to the next
article page, or next article in the list of pages library with same content

When a user clicks on previous, takes them to the article which was being read
before then.

Hope this makes sense, any help with coding will be appreciated.

Answer #3    Answered By: Aishwarya Karmarkar     Answered On: Nov 21

I understand what you are trying to do, and I assume it could possibly be done
using either the SharePoint client object model or JQuery. But it’s not going
to be easy code to implement. It will require some complex custom code behind
the buttons on the page. I’m not sure exactly what the code would need to be.

Answer #4    Answered By: Janell Camacho     Answered On: Nov 21

webpart can be developed fairly quickly. It will render Next and Previous
links on the page with dynamic URL's based on Current Page name/id.

I am quite sure this would be much simpler than JQuery or any other approach.

Answer #5    Answered By: Julia Washington     Answered On: Nov 21

What do you have against jQuery?!

Answer #6    Answered By: Shashwat Takle     Answered On: Nov 21

Am still stuck on this? Help please

Answer #7    Answered By: Aastha Acharya     Answered On: Nov 21

I thought we gave you a couple ideas?

Answer #8    Answered By: Glenda Roth     Answered On: Nov 21

where to start, is always the problem with newbies :)

Answer #9    Answered By: Jada Clemons     Answered On: Nov 21

Never worked this out............

Answer #10    Answered By: Brooke Lewis     Answered On: Nov 21

Your "previous" button seems easy; it would just make a call to javascript
history.back(), correct?

Beyond that, we'd need to know how you plan to indicate sequence in your

Answer #11    Answered By: Talia Johns     Answered On: Nov 21

I don't think browsing history is what Dzifa means.

If I follow a link from Google that looks like this:


...then when I want to go to the previous post (ID=3) I wouldn't code my
Previous button to history.back() because it would take me back to Google, not
to ID=3.

Why not parse the query string +/- 1 and test the resulting link for validity?

Answer #12    Answered By: Tera Callahan     Answered On: Nov 21

I can appreciate that point of view, but from his own post:

> When a user clicks on previous, takes them to the article which was being
> read before then.

Obviously if another article was *not* being read before then, this makes no

Answer #13    Answered By: Mark Davis     Answered On: Nov 21

Presumably you could do a client-side web service lookup of the site and return
pages sorted by date or seqID (assuming it’s date that you want) and have the
buttons wired to run the SOAP request for the next or previous pages...

Didn't find what you were looking for? Find more on Help with pagination in a publishing page layout Or get search suggestion and latest updates.