May 19, 2020
Estimated Post Reading Time ~ 1 mins

How to create Design dialog in Touch UI

Here are a few simple steps to create a Design Dialog

Step 1: Open /crx/de from your AEM instance: http://localhost:4502/crx/de/index.jsp

Step 2: Select the content folder under the project > components
component_designdialog

Step 3: Click create and provide the details as shown below
createcomponent

Step 4: Change the .jsp to .html. on clicking on the .jsp filename
savedothtml

Step 5: Select the component and create a node
creatcqdesigndialog
step 6: Enter name as cq:design_dialog
cqdesigndialog
Step 7: save
Step 8: Add property for cq:design_dialog
sling:resourceType - string -cq/gui/components/authoring/dialog as shown below
resourcetype
Step 9: create below nodes as shown one below the other
nodes+under+the+design_dialog

Screenshot+2020-11-03+at+12.41.59+PM
step 10: open the component file designdialog.html and remove all the text and enter the below script

This is my design dialog here is what you entered in the Design dialog:-> ${currentStyle.text}
htmlfile
step 11: Drag and drop this component on to the page and go to design mode to author it
step12: we can see the content is rendering on the page.
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.