Page 1 of 1

News module: "page x of xx line

Posted: Thu Mar 13, 2008 8:04 am
by sysmaster
I havea number of news articles set to display 5 at the time...
At the top (org. template) the news module will then display a "Page x of xx > >>"
so far correct.... now I paged through to one of the following pages, click on a news
article to display the full article in the {content} and when that gets displayed, the
"Page x of xx" is back to "page 1 of xx", instead of remaining on "Page 3 of xx".

Q: where to fix this so it will stay on the n't page of xx's newspage summary listings.

SM... Thanks in advance

Re: News module: "page x of xx line

Posted: Thu Apr 24, 2008 3:46 am
by stainless
...have the same problem... clicking "back" link on any page always  give me 1 page in current category

Re: News module: "page x of xx line

Posted: Thu Apr 24, 2008 7:38 pm
by shaimelz
The pagination functionality is not implemented in the 'detail' view of the News module. I am affraid there is no quick hack to implement this.

To make a patch:

- open  /modules/News/action.default.php 
- make the pagination code a generic function
- call the pagination function from the 'detail' + 'overview' action
- add the pager code from the summary template to the detail template
- support your changes back to the community

.