Skip to main content
Level 9
Oct 16, 2015 2:29 AM UTC
Solved

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

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
KunwarsalujaAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

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

6 replies

rajeev6969
Level 2
Oct 16, 2015 2:29 AM UTC

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. 

Translate
askdctmAuthor
Level 9
Oct 16, 2015 2:29 AM UTC

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.

Translate
Adobe Employee
Oct 16, 2015 2:29 AM UTC

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

Translate
askdctmAuthor
Level 9
Oct 16, 2015 2:29 AM UTC

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"?

Translate
askdctmAuthor
Level 9
Oct 16, 2015 2:29 AM UTC

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.

Translate
KunwarsalujaAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

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

Translate