Hi,
i need to create a node for each component to set the floating mode for the dialogs.
Is there a way to set this behaviour as default?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
samuel786431 wrote...
I need an approach to avoid the same
editconfig inside all the nodes. Idont want to change all thesupertypes of the components
Samual,
There is a workaround for this. However, may not be as good as existing solution.
The solution is that Any component dialog which gets open is nothing but an object of Dialog in Extjs and there is a simple way to launch & close it. All you need to do is have peace of Extjs code and get the object of the dialog to close & open it.
It is very similar to what we do when add custom listener functions. Like this. CQ
Jitendra
Views
Replies
Total Likes
You can have cq:editConfig at the component level and set the property cq:dialogMode as "floating".
Here is the good doc for this.
Jitendra
samuel786431 wrote...
Hi,
i need to create a node for each component to set the floating mode for the dialogs.
Is there a way to set this behaviour as default?
Thanks
Views
Replies
Total Likes
I need an approach to avoid the same editconfig inside all the nodes. I dont want to change all the supertypes of the components
Views
Replies
Total Likes
There is no way OOB to specific the default mode. It has to be configured for each component creation.
However, you can raise a support ticket with your suggestion for the product engg team.
Views
Replies
Total Likes
One approach could be is create a component with only editconfig and the mode set to floating and use this component as sling:resourceSuperType in all your component. But not recommended as you may not be able to use any other SuperTypes for your products.
Views
Replies
Total Likes
samuel786431 wrote...
I need an approach to avoid the same
editconfig inside all the nodes. Idont want to change all thesupertypes of the components
Samual,
There is a workaround for this. However, may not be as good as existing solution.
The solution is that Any component dialog which gets open is nothing but an object of Dialog in Extjs and there is a simple way to launch & close it. All you need to do is have peace of Extjs code and get the object of the dialog to close & open it.
It is very similar to what we do when add custom listener functions. Like this. CQ
Jitendra
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies