


Hi ,
I have inherited core carousel component to add specific component but how to restrict number of component ?
Views
Replies
Sign in to like this content
Total Likes
Hi @saurabh_kumar_02 ,
To restrict only one component to your carousel component, click on the Carousel Component Policy icon and choose that particular component alone in Allowed Components List.
@saurabh_kumar_02 Please follow below Steps to acheive your usecase:
https://github.com/adobe/aem-core-wcm-components/issues/471
How i can include only 1 component which is available in my project rather than setting a limit?
@saurabh_kumar_02 Allowed components can be configured through policy configuration. Configure Policy to add only your Project specific Component.
Hi @saurabh_kumar_02 ,
To restrict only one component to your carousel component, click on the Carousel Component Policy icon and choose that particular component alone in Allowed Components List.
Hi @saurabh_kumar_02 ,
To achieve maximum number client side validation, you have to add custom script, which I would not recommend because of maintenance of backward compatibility for future component updates. Instead of that you can display an author friendly message in authoring mode while author configures the component to suggest/warn that the component works better for max 3 components.
You will find a details description in below video-
https://www.youtube.com/watch?v=675WXqyGeII
Hope it helps!
Hi Ritesh,
I am also looking to set max limit of components that can be added in carousel component, the youtube video that you have added is removed. Could you please provide me the link with detail to implement the same.
Thanks
Arpitha P
Views
Replies
Sign in to like this content
Total Likes