Handling xtype => slingscriptinclude in AEM 6.4

Avatar

Avatar

nileshdchavan

Avatar

nileshdchavan

nileshdchavan

10-07-2018

Hello,

I'm migrating from AEM 5.6 to AEM 6.4. In one of my dialog i have xtype => slingscriptinclude for which i'm not sure what should be the sling:resourceType we should be using. 

Has anyone come across this xtype? If yes, what was the replacement used for this. If this is not OOTB xtype, is this custom xtype?

Any help w.r.t. would be much appreciated. thank you.

-Nilesh

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Reply

838

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Reply

838
Arun_Patidar
MVP

10-07-2018

Hi,

The script to look up in the parent component.  It will be run and the results included.

You can check below:

/libs/cq/ui/widgets/source/widgets/wcm/SlingScriptInclude.js

Example : siteStructure in advance tab of Page Property

/libs/foundation/components/page/tab_advanced/items/siteStructure

Screen Shot 2018-07-10 at 7.34.34 PM.png

Thanks

Arun

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

10-07-2018

Did you run the dialog conversion tool - did it convert that xtype to a sling resource type?

Avatar

Avatar

nileshdchavan

Avatar

nileshdchavan

nileshdchavan

10-07-2018

Yes, we did run dialog conversion tool and it did not convert this xtype to sling:resourceType and hence posted a query here.

Widget API Documentation can be found at - https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/widgets-ap...

The JS script location on AEM 5.6.1 - /libs/cq/ui/widgets/source/widgets/wcm/SlingScriptInclude.js

Avatar

Avatar

nileshdchavan

Avatar

nileshdchavan

nileshdchavan

10-07-2018

Arun, we are already aware about the location of the script and where it is used in AEM 5.6.1. We are looking for pointers as to what would this xtype be converted to in order to function in AEM 6.4.

So if you know what would be the correct sling:resourcetype for this xtype, please advise. Thank you.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Reply

838

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Reply

838
Arun_Patidar
MVP

11-07-2018

There is no replacement I believe if you didn't converted dialog for touch UI.

you can go for custom implementation and build according to your requirement.

you can use jsp/servlet instead with Selector and create a default servlet and return the coral dialog field which you created like another granite type.

sling

Example :

acs-aem-commons/TagWidgetConfigurationServlet.java at master · Adobe-Consulting-Services/acs-aem-com...

Thanks

Arun

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

11-07-2018

In addition - with Touch UI - you can build custom sling resource types if the available touch ui resource types do not meet your needs. For example, assume you want a color picker. You can do so using JQUERY. Details here: Adobe Experience Manager Help | Creating a custom Experience Manager sling:resourceType for Touch UI

As you can see - you have a lot of flexibility when working with touch ui resource types.