Expand my Community achievements bar.

SOLVED

How to delete cq:include component?

Avatar

Level 10

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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