collective / collective/collective.fieldcollapsing

Pagination breaks when collapsing

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

This may be a feature that needs to be developed, but I would expect that when collapsing fields we would also need to reset the pagination so that the same number of results are shown on each page, and that they follow on logically.

It seems that at present, each page of the original collection is collapsed so that you don't see duplicates on that particular page. This has the side effect of repeating results across pages.

# Example

I have a collection that displays pages in particular directory tree. There are 6 sub-page across 3 folders.

![Screen Shot 2019-03-13 at 11 39 01](https://user-images.githubusercontent.com/2558052/54276361-12ce7d00-4585-11e9-89b7-8f29eda4face.png)
![Screen Shot 2019-03-13 at 11 39 09](https://user-images.githubusercontent.com/2558052/54276363-1530d700-4585-11e9-91fd-7baa55f8aee9.png)

If we collapse on the parent, the collection shows:

![Screen Shot 2019-03-13 at 11 39 25](https://user-images.githubusercontent.com/2558052/54276391-237ef300-4585-11e9-9903-c2b52cfa6c8b.png)
![Screen Shot 2019-03-13 at 11 39 30](https://user-images.githubusercontent.com/2558052/54276398-2843a700-4585-11e9-9d2b-317da11d5083.png)

So instead of the expected 3 results on a single page, there are 4 results across the original pages.

So each page is being collapsed but the pagination is not being reset.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.