News module: "page x of xx line

General project discussion. NOT for help questions.
Post Reply
sysmaster
Forum Members
Forum Members
Posts: 23
Joined: Sun Aug 26, 2007 2:08 am

News module: "page x of xx line

Post 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
stainless
Forum Members
Forum Members
Posts: 27
Joined: Wed Apr 16, 2008 9:04 pm

Re: News module: "page x of xx line

Post by stainless »

...have the same problem... clicking "back" link on any page always  give me 1 page in current category
Last edited by stainless on Thu Apr 24, 2008 3:50 am, edited 1 time in total.
shaimelz

Re: News module: "page x of xx line

Post 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

.
Post Reply

Return to “General Discussion”