Expand my Community achievements bar.

SOLVED

AEM ExtJS widgets - html5smartfile fields

Avatar

Level 4

Hi, can you help me understand the expected behaviour of the authoring widget html5smartfile?

When I use this widget in an authoring dialogue and drop an image from the content finder onto the drag and drop area, it shows the file name in the editable text field for this component, e.g. 'MyImage.png'.  The widget also has a 'Referenced from: ' label.  This label now shows, 'MyImage.png'.  I expected this field to show the full path to the file's location in the content finder, e.g. '/content/dam/mysite/images/MyImage.png'.  If I delete the file name from the editable text field, click Ok on the authoring dialog and then re-open the authoring dialog the full path to the file in the dam is then shown in the 'Referenced from: ' label (and the text field still shows as empty).
 

What should the 'Referenced from: ' label show, once a file has been selected and how is it meant to work?

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Here is the documentation on this data type:

http://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.SmartImage

http://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.SmartImage

All data members are listed here. This topic should answer your questions. 

Avatar

Level 4

Many thanks for the reply.  I did start with the widgets api, but I didn't find any specific description of the 'referenced from' field.  I suppose I should look into the js for the smartfile widget.

By the way your link to SmartImage (and the same applies to CQ.form.SmartFile) show this widget marked,

'Deprecated: since 5.5'