How to get the client lib categories by design in sighly | Community
Skip to main content
Level 2
October 16, 2015
Solved

How to get the client lib categories by design in sighly

  • October 16, 2015
  • 1 reply
  • 699 views

I have included the necessary css and js for my project via the following meta calls in my head.html and footer.html

<meta data-sly-call="${clientLib.css @ categories='com.myproject.all'}" data-sly-unwrap></meta>

 

 

<meta data-sly-call="${clientLib.js @ categories='com.myproject.all'}" data-sly-unwrap></meta>

However, I would want to get the category using the current design. Is that possible?

 or is there another way to dynamically include these based on design in my project.

Thanks,

Ravi

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 Feike_Visser1

When you look in this file from the Sightly page-component:

/libs/wcm/foundation/components/page/head.html

You see this line:

 <meta data-sly-call="${headlibRenderer.headlibs @ designPath=head.designPath}" data-sly-unwrap></meta>

I think this is what you are looking for.

Make sure to declare headlibRenderer and head.

1 reply

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

When you look in this file from the Sightly page-component:

/libs/wcm/foundation/components/page/head.html

You see this line:

 <meta data-sly-call="${headlibRenderer.headlibs @ designPath=head.designPath}" data-sly-unwrap></meta>

I think this is what you are looking for.

Make sure to declare headlibRenderer and head.