Iβm using pagination but my query string like that:
/blog/articles/page:2
I want to change page
text on URL for example:
/blog/articles/sayfa:2
Is is possible?
Iβm using pagination but my query string like that:
/blog/articles/page:2
I want to change page
text on URL for example:
/blog/articles/sayfa:2
Is is possible?
Yes, you can do sth like this:
$articles = $page->children()->paginate(20, array( 'variable' => 'sayfa' ));
If you want different variables for different languages:
$articles = $page->children()->paginate(20, array( 'variable' => $site->language()->code() == 'de' ? 'seite' : 'page' ));
I couldnt find this feature. I think, this feature should put on documentation on site.
You are right, itβs one of the hidden goodies Iβll add it to the docs ASAP.