Paging doesn't work...

Permalink Browser Info Environment
I've moved the single page for testimonials out of the root folder... and the paging doesn't work. Can you save me some time searching through the code for the correct path?

Judging by the link URL, the add-on is looking for the file to be in the root of the website.

Type: Discussion
Status: New
invision
View Replies:
defunct replied on at Permalink Reply
defunct
Were you able to find the code?

It would be in the testimonials controller.
invision replied on at Permalink Reply
invision
I found the code on line 18 of packages/defunct_testimonials/controllers/testimonials.php:

$pageBase = View::url('/testimonials', 'view');


I changed to:
global $c;
$url = Loader::helper('navigation')->getLinkToCollection($c);
$pageBase = View::url($url, 'view');


I replaced the hard-coded page name with the current page object $url.

(thanks to Chad athttp://www.concrete5.org/community/forums/customizing_c5/pagination...

Would it make sense to change this in your original code? Wouldn't that give users more flexibility?

It works on the original single page, no matter where it's located, and on any pages aliased off the original.
defunct replied on at Permalink Reply
defunct
Yes,

I will certainly add it to the next release.

Thanks

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.