Importance of xtype:cqinclude and Value: /libs/foundation/components/image/dialog/items.infinity.json | Community
Skip to main content
New Participant
October 16, 2015
Solved

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

  • October 16, 2015
  • 6 replies
  • 1886 views

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.
Best answer by Kunwarsaluja

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

KunwarsalujaAccepted solution
Employee
October 16, 2015

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

askdctmAuthor
New Participant
October 16, 2015

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.

askdctmAuthor
New Participant
October 16, 2015

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

Employee
October 16, 2015

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

askdctmAuthor
New Participant
October 16, 2015

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.

rajeev6969
New Participant
October 16, 2015

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.