Comments (4)
Figured out where the difference occurs - line 281 in the PageActions trait. When setting the num prop directly the logic says that it doesn't need sorting.
Lines 280 to 283 in c1e6ff7
from kirby.
I have not an idea about the fixing the issue but as workaround you can use 'num' => 0
to create pages with reverse order.
from kirby.
@afbora yes, setting num to 0 does work but I just needed some example code to highlight the issue. Something needs fixing somewhere, but not sure if it is code or documentation. There is an inconsistency in using num in the props vs setting it after creation with changeStatus, and I think changeStatus after creation is probably the more understandable way, but num is documented as a prop and the difference in the behaviour is not obvious.
from kirby.
Seems that setting draft
to false
in conjuction with setting num
is causing the issue, setting num
doesn't need draft
as false
anyway as it sets the status to listed
so should there be a warning in the docs about not using both settings together?
from kirby.
Related Issues (20)
- Failing Test for DateTest
- Non existing files throw error 500: the thumbnail configuration could not be found
- `k-table`: index column too narrow for high indexes HOT 1
- File browser: pre-select current page HOT 7
- `file.create:before` hook: allow to modify `$file` object HOT 4
- Filename sanitization rules are inconsistent HOT 1
- Filename sanitization rules are inconsistent HOT 6
- Throwing NotFoundException results in 500 error page HOT 1
- Strange behavior when clicking on tags field input
- Date picker not opening when clicking on date field in Panel HOT 3
- Lab examples for `<k-table>`
- Public Lab: page/file preview empty as data is missing
- `<k-table>`: problems with case-sensitive matching of column index
- Star in blueprint title error
- textarea element is missing some padding when used as a Block in a Layout field.
- Console error when small screens
- System view: too long server name HOT 3
- `$file->srcset()` includes upscaled image sizes HOT 1
- Language permissions not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby.