adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
724 stars 737 forks source link

[List] Allow current page to be excluded #2699

Open ky940819 opened 3 months ago

ky940819 commented 3 months ago

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