Component without dialog but draggable | Community
Skip to main content
gargsahil099
Level 3
Feb 9, 2018 6:39 AM UTC
Solved

Component without dialog but draggable

Hi All,

We have a requirement where we need to create a component which should be drag gable but not be author able can some one please suggest how to achieve that as without dialog we will not able to drag the component on page and if there is dialog content author able to   click on edit button which will open the dialog for that.

Please suggest.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
_MVAccepted solution
Level 2
Feb 9, 2018 7:46 AM UTC

You can use cq:EditConfig. cq:EditConfig edits properties of the component and enables the component to appear in the Components browser or Sidekick even if we don't have dialog.

3 replies

RashidJorvee
Level 4
Jan 24, 2020 2:30 AM UTC

You may create a node with name "cq:dialog" of type jcr:primaryType="nt:unstructured" and it will make your component drag able. Author can only drop this component to page, since there is no dialog item it will not open dialog box for authoring.

 

 

 

 

Translate
Ravi_Pampana
New Participant
Feb 9, 2018 7:48 AM UTC

Hi,

cq:dialog will be used to show the dialog and cq:editConfig will be used to display the component on left rail and dragging to parsys. Create a component without cq:dialog if edit option is not required.

Option 2: If you just have cq:dialog without any node under it, click of edit wont open the dialog.

Hope this helps

Translate
_MVAccepted solution
Level 2
Feb 9, 2018 7:46 AM UTC

You can use cq:EditConfig. cq:EditConfig edits properties of the component and enables the component to appear in the Components browser or Sidekick even if we don't have dialog.

Translate