osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
648 stars 343 forks source link

route, get_title don't work unless permalinks are enabled #2276

Open garciademarina opened 6 years ago

garciademarina commented 6 years ago

route, get_title don't work unless permalinks are enabled

Add a new route like:

osc_add_route('list',          'list/?(.+)?',    'list/{foobar}',     'plugin/list.php' , false, "custom" , "custom", __('Custom title', 'plugin'));

Breadcrumb class use title at render() function.

fre2mansur commented 6 years ago

osc_add_route('list', 'list/?(.+)?/?(.+)?', 'list/{foobar}/{foobar2}', 'plugin/list.php' , false, "custom" , "custom", __('Custom title', 'plugin'));

and its not consider as a second param.