Hello!
I am new to Kirby and really like it so far. Only trouble I have had is that pagination does not work from the root URL.
When I have my news/blog page on: rooturl.com/news
then pagination works and produces the URLs: rooturl.com/news/page:2
etc.
When the news blog is the home page, which my client wants, the pagination URL is like this: rooturl.com/page:2
which just redirects to: rooturl.com/
Which Kirby version are you using? Are the articles children of the home page or have you used the c::set('home', 'somepage') option? Do you use any routes?
Hello!
I am not using any routes and I am not setting c::set(āhomeā, āsomepageā).
The homepage in the folder 1-home.
The homepage is of template ānewsā which has a controller called ānewsā.
Everything works fine when I change the page folder to ā2-newsā so that it is not the homepage and has the URL rooturl.com/news.
I am using the latest Kirby version and have multilanguage enabled:
c::set(ālanguage.detectā, true);
c::set(ālanguagesā, array(
array(
ācodeā => āenā,
ānameā => āEnglishā,
ādefaultā => true,
ālocaleā => āen_USā,
āurlā => ā/ā,
),
array(
ācodeā => āfrā,
ānameā => āFranƧaisā,
ālocaleā => āfr_FRā,
āurlā => ā/frā,
),
array(
ācodeā => ādeā,
ānameā => āDeutschā,
ālocaleā => āde_DEā,
āurlā => ā/deā,
),
array(
ācodeā => āesā,
ānameā => āEspaƱolā,
ālocaleā => āes_ESā,
āurlā => ā/esā,
),
));
Though I am not using more than one language file, they are all en.txt.
Thanks for your feedback!
I am using kirby-shopkit which requires multilanguage but I did notice that the url baseurl.com/news/page:2 does work so I can interpolate /new into the next page URL in the meantime.