Displaying an image by giving a html property in TouchUI dialog. | Community
Skip to main content
vasimakram
New Participant
January 10, 2017
Solved

Displaying an image by giving a html property in TouchUI dialog.

  • January 10, 2017
  • 3 replies
  • 2455 views

I am able to display an image statically using displayfield xtype and setting fieldDescription property value as <img src="path of the image from DAM">  in classic UI. How to reproduce the same in Touch UI?

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 kautuk_sahni

Hi 

Please have a look at this Adobe AEM Helpx article:- 

Link:- https://helpx.adobe.com/experience-manager/using/creating-touchui-validate1.html

// In this article user is shown a color picker dialog box for selection of color. on the same principles you can create a dialog box showing image for your case.

~kautuk

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
January 11, 2017

Hi 

Please have a look at this Adobe AEM Helpx article:- 

Link:- https://helpx.adobe.com/experience-manager/using/creating-touchui-validate1.html

// In this article user is shown a color picker dialog box for selection of color. on the same principles you can create a dialog box showing image for your case.

~kautuk

Kautuk Sahni
smacdonald2008
New Participant
January 10, 2017

If you mean displaying the image in the actual dialog - you can use JQuery to build a custom view in the Touch UI dialog. See how we built a custom Color Picker here using JQuery: 

http://scottsdigitalcommunity.blogspot.ca/2016/03/how-to-create-aem-touch-ui-color-picker.html

smacdonald2008
New Participant
January 10, 2017

See this 6.2 HTL artilce - we are displaying images in a TOuch UI component: 

https://helpx.adobe.com/experience-manager/using/htl_movie62.html