2 Replies Latest reply on Oct 16, 2012 12:18 PM by ZackTurnbow

    Component Deletion

    ZackTurnbow

      I currently have an issue where a component on a page is being referenced by other components throughout the site. When that component gets deleted, it causes reference errors for the other components that are referencing it. Is there a way to identity all of the components that are referencing the component that is trying to be deleted before the component is actually deleted? Or is there a way to delete a component and all other components that reference that component in one action?

        • 1. Re: Component Deletion
          rush_pawan Level 4

          As i understood from above description that you have instantiated a component on page and referring same instance on other pages (compoents) using "referece" component. If that is correct then below query will help you to identify all the pages/compoents if they are referring it any how. Can you run below query if it helps you to find out all the reference. provide the value in < >

           

          http://<host>:<port>/bin/querybuilder.json?type=nt:unstructured&1_property=sling:resourceType&1_p roperty.value=<component resoure path>

           

          you can create similar xpath query and use it for your purpose.

          • 2. Re: Component Deletion
            ZackTurnbow Level 1

            That worked. Thank you.