BookStack
BookStack copied to clipboard
Allow manual book order sorting
Desired Feature: Allow Book order sorting, similar to how this works within books for chapters/pages
This is related with https://github.com/BookStackApp/BookStack/issues/126
I would like to see this as well, I just noticed that a chapter I just created is at the bottom of a book.
I would also like to see this added.
how about being able to choose "Specific Shelf" for the application homepage? that would be a great compromise then you could have one shelf and set it to the home page I'd imagine that's fairly easy to implement, and the dropdown is already there so no clunkiness and it wouldn't break existing use-cases
@agent4125 Related to #1519 and #2315
Setting manually the default order when editing the shelf is perfect for me, but in case someone would like to set the default order to something else : just edit app/Entities/Controllers/BookshelfController.php file and move/remove/comment the line below. It will set the default sort order to the top line option, here name (as it will be the first on the list).
$listOptions = SimpleListOptions::fromRequest($request, 'shelf_books')->withSortOptions([
- 'default' => trans('common.sort_default'),
'name' => trans('common.sort_name'),
'created_at' => trans('common.sort_created_at'),
'updated_at' => trans('common.sort_updated_at'),
]);
PS: to set the default order in the shelves view, edit the order following the line $listOptions = SimpleListOptions::fromRequest($request, 'bookshelves')->withSortOptions([