-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing limit from navigation search? #46
Comments
What's wrong with that limit? Also, I suppose if wouldn't use a limit if you don't set it at all |
This needs to be changed so that if navigation.records is set to ZERO then we don't use pager since if this is set to undef then default of zero applies instead. |
On 2015-06-02 12:00, Peter Mottram wrote:
Peter, is this something I could do? I have some free time now. |
@murwiz please go ahead. Can you also update pod to explain how this setting works plus add tests? |
I started working on this earlier this month, then got distracted and only now I'm returning to it. My obstacle here is in testing: there doesn't seem to be a programmatic way to change up the {navigation}{records} value inside the D::P::IC6::Routes tables. I've decided to add one, but for now (since it's not in the scope of this change), it'll be a local change only. |
Should be possible like this: setting('plugins')->{"Interchange6::Routes"}->{navigation}->{records} = 20 On 29/06/15 21:14, Jeff Boes wrote:
|
On 2015-06-30 04:01, Peter Mottram wrote:
Thanks, I'll give that a try. I suspect you can't localize this to a |
You're right: you'll have to reset at end of block to original setting. On 30/06/15 14:47, Jeff Boes wrote:
|
On 2015-06-30 04:01, Peter Mottram wrote:
Sadly, this does not work: I had identified why in my earlier try, but I The route configuration is set up in _setup_routes, around line 222:
%route_defaults); This hash is then referenced in the routes, e.g. line 351:
Normally, this is no big deal, but if you want to change this value at |
On 2015-06-30 04:01, Peter Mottram wrote:
After studying the code some more, I don't think this is easily solved. I figured out a way to do it, basically replacing $routes_config with a |
There doesn't seem to be a way to remove the limit from the navigation search, other than to set the configuration navigation.records to an absurdly large number.
The text was updated successfully, but these errors were encountered: