I have created a proxy component that extends wcm/core/components/carousel/v1/carousel. I have restricted the allowed components. However now i want to restrict number of times we can add items,i.e, number of carousel cards.
how to achieve this?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
You can do this multiple ways, javascript, java... But i suggest that in the dialog definition (cq:dialog), add a validation rule to limit the number of items that can be added. Assuming you know how to overlay a component.
You can do this multiple ways, javascript, java... But i suggest that in the dialog definition (cq:dialog), add a validation rule to limit the number of items that can be added. Assuming you know how to overlay a component.
Hi,
If you want to restrict the number of carousal fields in the component, you need to override dialog structure from core component.
You can keep all the created nodes empty and override just the no. of carousal fields and author it based on your requirement
Hope this helps
Thanks
@Zendarkke : Please refer this previous question here. It explains different ways to achieve what you need.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-restrict-number-of-...
thanks.
Views
Likes
Replies
Views
Likes
Replies