How to delete cq:include component? | Community
Skip to main content
edubey
Level 10
October 16, 2015
Solved

How to delete cq:include component?

  • October 16, 2015
  • 1 reply
  • 1030 views

Hi,

If there are few components that are included in template level like..

<cq:include path="navigation" resourceType="apps/project/component/navigation" />

When these will gets included and we do right click on them, delete option comes up. I want to give functionality to delete those component.

Please share you views.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

You made it part of template & can;t remove it. Following are the option..

1)  create another component that uses the earlier one as its super type. In the new component remove the include. On all the existing content fix the node structure and to point to new component.

OR

2)   Make  use the "BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE " from componentcontext

http://docs.adobe.com/docs/v5_1/cq-wcm-javadoc/com/day/cq/wcm/api/components/ComponentContext.html

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

You made it part of template & can;t remove it. Following are the option..

1)  create another component that uses the earlier one as its super type. In the new component remove the include. On all the existing content fix the node structure and to point to new component.

OR

2)   Make  use the "BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE " from componentcontext

http://docs.adobe.com/docs/v5_1/cq-wcm-javadoc/com/day/cq/wcm/api/components/ComponentContext.html