# Drag and drop (invisible → visible) always inserts at the top

**URL:** <https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 25, 2017, 1:26pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110 "2017-11-25T13:26:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmoerschgen](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@schmoerschgen](https://forum.getkirby.com/u/schmoerschgen)\
**Post date:** [November 25, 2017, 1:26pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110/1 "2017-11-25T13:26:48Z")

</div>

I don’t know how, but I ended up with several pages with the same order index (folder name prefix). manually cleaning that up fixed the order in the panel. as descrbibed in [Failing to resort panel page order - #4 by lukasbestle](https://forum.getkirby.com/t/failing-to-resort-panel-page-order/3769/4)

the problem that still persists is: **whenever I drag an invisible page over to the ‘visible’ column, the page gets inserted at the top (and gets the index 1) – no matter where in the list I drop it.**

* * *

edit:  
ok, it looks like this is caused by the fact, that I manually disabled pagination for this view. – is there any way to disable pagination without breaking other things?

---

<div class="post-metadata">

**Author:** ![schmoerschgen](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@schmoerschgen](https://forum.getkirby.com/u/schmoerschgen)\
**Post date:** [November 25, 2017, 1:39pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110/2 "2017-11-25T13:39:45Z")

</div>

looking at the code, the following seems to help – but obviously it’s not ideal:

```auto
pages:
  limit: 999999

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 25, 2017, 3:00pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110/3 "2017-11-25T15:00:10Z")

</div>

Could you please let us know what exactly you did to disable pagination and what the parent blueprint of those pages look like. Also, what Kirby version are you using?

---

<div class="post-metadata">

**Author:** ![schmoerschgen](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@schmoerschgen](https://forum.getkirby.com/u/schmoerschgen)\
**Post date:** [November 25, 2017, 3:15pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110/4 "2017-11-25T15:15:59Z")

</div>

panel/app/controllers/subpages.php:

 ![15](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/a/a60253f807e30ad4c62bf9e318def0327bc04987.png)

panel/app/views/subpages/index.php:

 ![05](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/8cc4e644e40d68858f693ef137c71c98f1f972e2.png)

blueprint:

```auto
title: Projects
icon: folder-open-o
files: false

pages:
  template: project
  limit: 999999

options: 
  status: false  
  template: false  
  url: false
  delete: false
  preview: true

fields:
  # [...]

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 25, 2017, 6:12pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110/5 "2017-11-25T18:12:06Z")

</div>

In general, it’s not such a great idea to mess with the source code. Setting the limit to a high number is actually your best bet to prevent pagination.

Why do you want to disable pagination, anyway? Long lists of pages are not really manageable, are they?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:30pm UTC](https://forum.getkirby.com/t/drag-and-drop-invisible-visible-always-inserts-at-the-top/9110/6 "2025-02-06T17:30:27Z")

</div>

Archived on February 6, 2025, 5:30pm UTC


