This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

jamescowhen2516
jamescowhen2516

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?

moh.thabet200631375
moh.thabet200631375

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.