How to extend/reuse parsys component
I have to create a custom component container similar to parsys where i can allow some specific components to be added.
let us for example i have created a component called simple where i metioned sling:resourceSuperType is /libs/foundation/components/parsys and this simple component i have added in a page component like <cq:include path = simple resouceType = "myapp/componets/simple" />
When i open the page i can not see any editbar then i added the editconfig to the simple component, now i can see the edit bar but if i click new/edit i can not see anything happening.
I can not see the exact behavior like parsys - "edit option and onclick of that list of components pops up where you can select any component and add to parsys".
Is there something wrong with my component ?
Basically i just want to achieve the following things through component. I am pasting the xml snippet below :
<jcr:content
<simple
jcr:primaryType="nt:unstructured"
sling:resourceType="foundation/components/parsys" >
<component
jcr:primaryType="nt:unstructured"
sling:resourceType="myapp/components/....."/>
<!-- more components here-->
</simple>
</jcr:content>
Please suggest me how we can achieve this through component.
Thanks,
Vipul