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

SOLVED

Is there a way to add clientlibs to content fragments while rendering them to a page using core components?

Simranjeet_Singh
Level 1
Level 1

I am trying to render content fragments on to a page using core components. Fragment loads just as content (as expected) with titles and values in different html elements for all fields in fragment. 

 

1. Is there a way we can attach clientlibs while rendering?

2. Hiding field titles while rendering on to a page.

  

AEM 6.5.0 content fragments
1 Accepted Solution
rush_pawan
Correct answer by
Community Advisor
Community Advisor

I would suggest to extend core component and enable it for styling system https://experienceleague.adobe.com/docs/experience-manager-65/authoring/siteandpage/style-system.htm... (this is the perfect use case to match)  and as it will be your local, so you can manage it for your need (clientlib or rendering related)

 

View solution in original post

3 Replies
rush_pawan
Correct answer by
Community Advisor
Community Advisor

I would suggest to extend core component and enable it for styling system https://experienceleague.adobe.com/docs/experience-manager-65/authoring/siteandpage/style-system.htm... (this is the perfect use case to match)  and as it will be your local, so you can manage it for your need (clientlib or rendering related)

 

View solution in original post

Simranjeet_Singh
Level 1
Level 1
Hi Pawan, do we really need to add styletab as core component has already one?