Skip to main content
Level 2
Oct 16, 2015 2:27 AM UTC
Solved

How to get the client lib categories by design in sighly

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.
Feike_Visser1
Feike_Visser1Accepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

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
Oct 16, 2015 2:27 AM UTC

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.

Translate