Is there a way to add clientlibs to content fragments while rendering them to a page using core components? | Community
Skip to main content
New Participant
Mar 25, 2021 7:54 AM UTC
Solved

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

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.

  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
Mar 25, 2021 5:00 PM UTC

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.html?lang=en#setup (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)

 

3 replies

Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
Mar 25, 2021 5:00 PM UTC

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.html?lang=en#setup (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)

 

Translate
New Participant
Mar 26, 2021 9:48 AM UTC
Hi Pawan, do we really need to add styletab as core component has already one?
Translate
Bhuwan_B
New Participant
Mar 25, 2021 10:02 AM UTC