Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Handling xtype => slingscriptinclude in AEM 6.4

Avatar

Avatar
Validate 1
Level 2
nileshdchavan
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
nileshdchavan
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
nileshdchavan
Level 2

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,139 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,139 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

10-07-2018

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

Avatar

Avatar
Validate 1
Level 2
nileshdchavan
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
nileshdchavan
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
nileshdchavan
Level 2

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
Validate 1
Level 2
nileshdchavan
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
nileshdchavan
Level 2

Likes

10 likes

Total Posts

27 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
nileshdchavan
Level 2

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,139 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,139 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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.