Hi,
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?
Thank you
Solved! Go to Solution.
Views
Replies
Total Likes
Hi, Can you try by creating/changing the jcr:title of your component node to different name like " my Dragn Drop Footer ". at least very first time give a different name. And make sure to select your component from Design mode.
Views
Replies
Total Likes
Can you expand you dialog and share a screenshot of the nodes. Also - try placing the component under General and see if it appears there in the sidekick. I think there may be an issue with your dialog.
Views
Replies
Total Likes
smacdonald2008 wrote...
Can you expand you dialog and share a screenshot of the nodes. Also - try placing the component under General and see if it appears there in the sidekick. I think there may be an issue with your dialog.
This is the screenshot of the dialog, I have posted my dialog jcr above.
Also I tried to put in the General group, and it doesnt show up.
[img]2014-06-10_22-06-50.png[/img]
Views
Replies
Total Likes
Hi, Can you try by creating/changing the jcr:title of your component node to different name like " my Dragn Drop Footer ". at least very first time give a different name. And make sure to select your component from Design mode.
Views
Replies
Total Likes
Var wrote...
Hi, Can you try by creating/changing the jcr:title of your component node to different name like " my Dragn Drop Footer ". at least very first time give a different name. And make sure to select your component from Design mode.
I can make this work if I delete everything and re-create everything, apps/mywebsite, designs/mywebsite, content/mywebsite..etc. Because I am learning. I can do all the deletions and recreations. Now my question comes down to "How can I debug this thing or How can I know where goes wrong?" In CQ5 is there a way to indicate this kind of error?
Thank you
Views
Replies
Total Likes
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:
http://dev.day.com/docs/en/cq/current/deploying/configure_logging.html
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.
Views
Replies
Total Likes
Views
Likes
Replies