Skip to content

[List] Allow current page to be excluded #2699

Open
@ky940819

Description

Feature Request

Is your feature request related to a problem? Please describe.
There is currently no way to exclude the current requested page from the results of a List component.

This would be a beneficial feature in situations where a list is reused across multiple pages (e.g. via an Experience Fragment) but it is not desirable to include the current page in the list. For example, a "More In This Section" list which shows sibling pages that are not the current page, and adapts automatically based on what page is being viewed.

Currently, to achieve this an author would have to place a list on each page individually, and use the static list type and select all pages that are not the current page, and then maintain every list individually as pages are added/removed in the future.

Describe the solution you'd like
A simple checkbox in the List component dialog that, when checked, excludes the current request page from the list results.
This should work regardless of the list type, and should not effect the maximum number of items to be displayed.

Are there alternatives?
N/A

Documentation
N/A

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions