Search code examples
adobecomponentsinstanceaemday-cq

Require at most one instance of component on a page


I develop the site with Day CQ5. I am developing templates, components, and pages and faced with a problem. On the page of the site can be one instance of component, and need to prevent the addition of other instances. How can I do this? Maybe someone has faced this problem?


Solution

  • If the authors don't need the ability to add the component to different areas (parsys containers) of the page, you could just include it in a static location. Authors could then either populate the component or leave it blank to hide it. Then you would leave it out of the sidekick so they couldn't add additional copies.