Expand my Community achievements bar.

SOLVED

Cannot display component in sidekick custom group

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 5
Level 5

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.

View solution in original post

5 Replies

Avatar

Level 10

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. 

Avatar

Level 3

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]

Avatar

Correct answer by
Level 5
Level 5

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.

Avatar

Level 3

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

Avatar

Level 10

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.