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

Experience fragment on a page without including its css and js files

Avatar

Avatar
Validate 10
Level 2
anelem1760873
Level 2

Likes

9 likes

Total Posts

59 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 10
Level 2
anelem1760873
Level 2

Likes

9 likes

Total Posts

59 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
anelem1760873
Level 2

19-03-2021

Hi there,

is the a way in AEM we can include an experience fragment on a page without including its css and js files, using HTL
Something like this, is there any argument to pass to ignore/exlude css and js file on this.

<sly data-sly-resource="${ @ path="experiencefragmentPathHere", resourceType='wcm/foundation/components/parsys', wcmmode='disabled', decoration='false' }"></sly>

 Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct Reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct Reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

19-03-2021

We had similar kind of requirement, so we had created two xf structure component and so two template one with and another without clientlibs.

We were using without clientlib XF, to create a experince fragment to be embeded on the page where we allready have all the client libs to generate the look and feel for the experience fragment.

And with clintlibs to create experience fragment, where we were using experience fragment stand alone.

 

So you can take that approach to handle to scenario.

 

If you don't have that option available you can take help from template policy to include or exclude a client libs based on there category.

 

Hope this will help.

Umesh Thakur

 

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,430 likes

Total Posts

3,305 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,430 likes

Total Posts

3,305 posts

Correct Reply

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

19-03-2021

Hi, can you try with content selector?