This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I am using Rainlab.Blog plugin as my home page, but I would like to change the way pages are defined in the routes. Currently, it is defined as a path parameter: /:page?1 which results in urls that looks like: http://foobar.com/1 http://foobar.com/2 etc... I would like to change it to an optional query parameter like http://foobar.com?page=1 In addition, I would like to be able to pass pagination variables such as 'offset' & 'page' as query parameters so that users can customize it themselves. How can I accomplish this in OctoberCMS?
use it like this: {{members.appends({q: q,state:states_ids,area:areas_ids,tag:tags_ids}).render|raw }}
I added in the php section of the results page: function onStart(){ $this['q'] = request()->get('q'); $this['tags_ids'] = request()->get('tag'); $this['states_ids'] = request()->get('state'); $this['areas_ids'] = request()->get('area'); }
1-2 of 2