This object is in archive! 

How can I expande the pagination?

Archived Florian S. 12 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.

Replies (8)

photo
1

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.

photo
1

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

photo
1

please help

photo
1

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

photo
1

Hallo Stas Kuzma,


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

Subject: "License Florian Schlenkrich"

photo
1

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

photo
1

thank you!it works - after restart the browser!

photo
1

Florian Schlenkrich wrote:

thank you!it works - after restart the browser!

You are welcome!

Replies have been locked on this page!