I found some strange undesired behaviour. Please, help me find out the right way.
First, I use this code to list all pages in my clonable template:
Now, I put explicit date of the last element and get the same order:
But what happens if I set date to the next value - date of page with id=16?
The order is different and I don't like it.
Any ideas?
First, I use this code to list all pages in my clonable template:
- Code: Select all
<cms:pages >
<cms:show k_page_id /> - <cms:show k_page_date /><br>
</cms:pages>
---
Result:
19 - 2016-03-10 03:21:56
20 - 2016-03-10 03:21:56
17 - 2016-03-10 03:21:55
18 - 2016-03-10 03:21:55
16 - 2016-03-10 03:21:49
15 - 2016-03-10 00:31:18
Now, I put explicit date of the last element and get the same order:
- Code: Select all
<cms:pages start_on='2016-03-10 00:31:18' >
<cms:show k_page_id />,
</cms:pages>
Result: 19, 20, 17, 18, 16, 15,
But what happens if I set date to the next value - date of page with id=16?
- Code: Select all
<cms:pages start_on='2016-03-10 03:21:49' >
<cms:show k_page_id />,
</cms:pages>
Result: 20, 19, 18, 17, 16,
The order is different and I don't like it.
Any ideas?