Sign in to Community
Sign in to view all badges
I am trying to create a component and make it display in my group "Others" from sidekick.
This is what I did. Create a component called myDragnDropFooter, But when I switch to design mode and try to add my component in "Allowd Components" section, it is not there.
This is my jcr of myDragnDropFooter
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:description="my drag and drop footer" jcr:primaryType="cq:Component" jcr:title="myDragnDropFooter" sling:resourceSuperType="foundation/components/parbase" allowedParents="[*/*parsys]" componentGroup="other"/>
And below is the dialog
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Dialog" title="dialg" xtype="dialog"> <items jcr:primaryType="cq:Widget" xtype="tabpanel"> <items jcr:primaryType="cq:WidgetCollection"> <tab1 jcr:primaryType="cq:Panel" title="Tab 1"/> </items> </items> </jcr:root>
Can anyone tell me what I missed?
In CQ - errors are logged in the log file. I recommend reading the logs and setting to different levels.
To learn how to set different logging levels - see:
By the way -- the first time you did it - if there was a wrong use of a property - including when you build the dialog- then the component will not show up in the sidekick.
Hope this helps.