nova-sortable icon indicating copy to clipboard operation
nova-sortable copied to clipboard

Move items across pages

Open ludgerey opened this issue 5 years ago • 3 comments

Is there a way to move an item to the next/previous page? As I see it, currently no.

Of cause Drag'n'drop is hard to manage across pages. But maybe add an extra button at the first and list item? Or use the existing arrow buttons only to move to the next page instead of the end?

ludgerey avatar Feb 18 '20 18:02 ludgerey

I'll give it some thought, maybe an UI/UX designer could pitch in. :D

Tarpsvo avatar Apr 17 '20 12:04 Tarpsvo

I am also thinking about how to handle pagination as I am using in the parent HasMany::make but within the relationships parent it list it with sorting but has pagination in it so cannot sort proper.

Currently I get past this by changing the pagination settings in the nova config file to load-more, enabling me to load them all and then sort.

Wondering if theres a setting that can be used to remove pagination to a relationship listings etc.

simondavies avatar Nov 07 '20 20:11 simondavies

This isn't a great solution, but one I've found is to simply set the number of models loaded for the relationship to something impractically large. So on your Nova Resource, add:

public static $perPageViaRelationship = 50;

You could push that even further, but of course that's risking making the page hard to use.

Hazzard13 avatar Oct 27 '21 19:10 Hazzard13