Expand my Community achievements bar.

SOLVED

Importance of xtype:cqinclude and Value: /libs/foundation/components/image/dialog/items.infinity.json

Avatar

Level 9

Hi All,

In multiple cases, I have observed these properties being used in the article https://helpx.adobe.com/experience-manager/using/creating-cq-feed-components-display.html.

- Can you please let me know what exactly is the purpose of using it here.

- Twitter widget JavaScript code is included in the component here.  So, is it some thing like Twitter/every application exposes some code , which on including, we will be able to access that particular application. Any thoughts on this will be helpful.

1 Accepted Solution

Avatar

Correct answer by
Employee

Purpose of xtype : cqinclude is to reuse the existing dialog elements in other dialogs.

Refer https://helpx.adobe.com/experience-manager/kb/XtypeCqInclude.html to get an idea how to use it and official documentation around this at [1]

Giving a quick look at the twitter component code, I think this doesn't have any use here but if you create any component you need to have a dialog node in the component structure( be it an empty dialog).

[1] : https://docs.adobe.com/docs/en/cq/5-6-1/developing/widgets/xtypes.html

View solution in original post

6 Replies

Avatar

Correct answer by
Employee

Purpose of xtype : cqinclude is to reuse the existing dialog elements in other dialogs.

Refer https://helpx.adobe.com/experience-manager/kb/XtypeCqInclude.html to get an idea how to use it and official documentation around this at [1]

Giving a quick look at the twitter component code, I think this doesn't have any use here but if you create any component you need to have a dialog node in the component structure( be it an empty dialog).

[1] : https://docs.adobe.com/docs/en/cq/5-6-1/developing/widgets/xtypes.html

Avatar

Level 9

Also, not getting the reason as to why is a dialog required here. Dialog is probably required when the component has to be edited. But here we are just rendering the content. Why the dialog has to be included. 

Any thoughts on this will be helpful.

Avatar

Level 9

Hi,

Thank you for your reply.

Also, what I understood from the above is that "If you have a component, a dialog node is mandatory in the component structure"?

Avatar

Employee

askdctm wrote...

Hi,

Thank you for your reply.

Also, what I understood from the above is that "If you have a component, a dialog node is mandatory in the component structure"?

 

I meant was, If you have a component and you want it to be visible in the sidekick you have to have a dialog node.

Please go through the link https://docs.adobe.com/docs/en/cq/5-6-1/developing/components.html#Component definitions

Avatar

Level 9

Hi,

I read somewhere that even though dialog/design_dialog is not present, just having cq:EditConfig will suffice, for the component to appear in the sidekick.

Any thoughts on this will be helpful.

Avatar

Level 2

Yes this is correct. If you don't want to have dialog /design dialog and still wants your component to be available in sidekick then add node cq:EditConfig in your component.