You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the the page: 1 option on a section type: pages, it does not have any effect. No matter if I reload the panel, switch to another page and come back, or log out and in again—the localStorage item (eg. kirby$pagination$/pages/entries/entries with a value of 3) will be saved and I will land on the page where I previously left off.
In the docs, it says “Sets the default page for the pagination. This will overwrite default pagination.” What is the default pagination? Am I understanding this property wrong or does it actually not work?
there does not seem to be anything about the page option. Or should it be included in the pagination prop? Also in the Vue Component (and the ModelsSection.vue) there is not a line about this.
Expected behavior
The pages section should reset to the given page after a reload, changing pages or logging out and in again. So on each visit, so to say, it should start whatever I set the page option to.
To reproduce
Create a type: pages section
Set page option to 1
Fill in data to have multiple pages
Navigate to page 2 and reload/log out and in/switch pages and come back
The section is still on page 2
Your setup
Kirby Version
4.4.1
Your system (please complete the following information)
Device: MacBook Pro
OS: macOS 15.0.1
Browser: Chrome (Arc)
The text was updated successfully, but these errors were encountered:
When pagination changed, it stored into kirby$pagination$* local storage.
What should we do? Should we also clear localStorage when the session is ended (logged out) or should we always prioritize the defined page option when the page is first loaded?
I would prefer always landing on the defined page, not only on each new session. At least that’s what this option means to me, judging from the docs. It led to confusion multiple times both for me and clients who use Kirby.
Description
If I use the the
page: 1
option on a sectiontype: pages
, it does not have any effect. No matter if I reload the panel, switch to another page and come back, or log out and in again—the localStorage item (eg.kirby$pagination$/pages/entries/entries
with a value of3
) will be saved and I will land on the page where I previously left off.In the docs, it says “Sets the default page for the pagination. This will overwrite default pagination.” What is the default pagination? Am I understanding this property wrong or does it actually not work?
Looking at the kirby source in
kirby/config/sections/pages.php
Lines 12 to 24 in eb47158
and also in
kirby/config/sections/pages.php
Lines 316 to 336 in eb47158
there does not seem to be anything about the
page
option. Or should it be included in thepagination
prop? Also in the Vue Component (and the ModelsSection.vue) there is not a line about this.Expected behavior
The pages section should reset to the given page after a reload, changing pages or logging out and in again. So on each visit, so to say, it should start whatever I set the
page
option to.To reproduce
type: pages
sectionpage
option to1
Your setup
Kirby Version
4.4.1
Your system (please complete the following information)
The text was updated successfully, but these errors were encountered: