code generator pagination

5 posts by 2 authors in: Forums > CMS Builder
Last Post: April 4, 2011   (RSS)

By rez - April 1, 2011

when using the pagination, the "back to list" on a details page is taking me back to page one. If I'm on page 5 this is not convenient. How can i make the link go back to the page that the record I am viewing details about was on instead of the beginning?

thanks.

Re: [rez] code generator pagination

By zip222 - April 2, 2011

Try replacing the default back to list url that the CMS gives you with the javascript below - this will take the user back one page in their history...

<a href="javascript:history.go(-1)">Back</a>

Re: [zip222] code generator pagination

By rez - April 3, 2011

Unfortunately, I also have the latest 3 article headlines on the home page. That code would take the visitor to the home page if that's where they came from.

No way to detect which list page the listing is on? Any other ideas? As records are added this problem becomes worse.

Or if i could use that JavaScript only if coming from the paginated page.

Thanks for the help.

Re: [rez] code generator pagination

By zip222 - April 3, 2011

If you can list out the various situations and your preferred behavior for the "back" button for each situation I can probably help you with the code to do it.