Is there a way to add clientlibs to content fragments while rendering them to a page using core components? | Community
Skip to main content
March 25, 2021
Solved

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

  • March 25, 2021
  • 2 replies
  • 1912 views

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.
Best answer by Pawan-Gupta

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)

 

2 replies

Bhuwan_B
Community Advisor
Community Advisor
March 25, 2021
Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
March 25, 2021

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)

 

March 26, 2021
Hi Pawan, do we really need to add styletab as core component has already one?