This object is in archive! 

How can I expande the pagination?

Archived Florian S. 13 years ago

is there a possibility to expande the questions from 5 to 10?

Best Answer
photo

Currently, this isn't manageable from admin backend.

So you have to adjust following file:

/application/modules/questions/handlers/Events.php

find the strings:

$paginator = $responsesDb->getPaginator(array(

'type' => 'question',

'status' => 'popular'

), null, null, 5);

and replace 5 with required number of questions you want to display.

This comment is in trash! Restore

Replies (8)

photo
11

Currently, this isn't manageable from admin backend.

So you have to adjust following file:

/application/modules/questions/handlers/Events.php

find the strings:

$paginator = $responsesDb->getPaginator(array(

'type' => 'question',

'status' => 'popular'

), null, null, 5);

and replace 5 with required number of questions you want to display.

This comment is in trash! Restore
photo
10

thank you very much for the fast answer but i can't find such string.

the correlated string is "$questionsCount = $responsesDb->count(array('type' => 'question'));"

why can not find the string "$questions = $responsesDb->findTop('question');" like you

This comment is in trash! Restore
photo
9

please help

This comment is in trash! Restore
photo
11

Florian Schlenkrich wrote:

please help

Florian,

I've sent you email to verify license to make sure you have valid license as I can't see you in the list of buyers. Email license url, name of purchaser to support(at)useresponse.com

This way we'll provide you with support. Thank you

This comment is in trash! Restore
photo
12

Hallo Stas Kuzma,


I have sent the license to support(at)useresponse.com!

Subject: "License Florian Schlenkrich"

This comment is in trash! Restore
photo
13

Official answer for this question is updated with proper directions on how to change the number of questions displayed on home page.

This comment is in trash! Restore
photo
11

thank you!it works - after restart the browser!

This comment is in trash! Restore
photo
12

Florian Schlenkrich wrote:

thank you!it works - after restart the browser!

You are welcome!

This comment is in trash! Restore

Replies have been locked on this page!

Your vote is accepted!