Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8823963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:29:20+00:00 2026-06-14T06:29:20+00:00

I have tried to add multiple categories to embed[] and dependencies[] interchangeably many times.

  • 0

I have tried to add multiple categories to embed[] and dependencies[] interchangeably many times. But I always see a dependency resolution error in JavaScript on the website.

Also, How do I specify the order of categories in a multiple value entry like embed[]? Is there any way we can control the order the JavaScript source that is loaded during the launch of website?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:29:21+00:00Added an answer on June 14, 2026 at 6:29 am

    categories is the list of identifiers to publish a clientlib under.

    dependencies should cause your page to have extra requests to other clientlibs (external “subscribe”)

    embed should “aggregate” those other clientlibs INTO the current clientlib (internal subscribe)

    both properties can have multiple values, and the CRXDE Lite interface allows changing the order of items in the value list.

    Given Clientlibs:

    • /etc/clientlibs/depA categories=[“depA”]
    • /etc/clientlibs/depB categories=[“depB”]
    • /etc/clientlibs/depC categories=[“depC”]
    • /etc/clientlibs/useA categories=[“useA”], dependencies=[“depA”, “depB”]
    • /etc/clientlibs/useB categories=[“useB”], embed=[“depB”, “depC”]

    If a page uses “useA” <cq:includeClientLib categories="useA"/>, then the HTML should have requests for depA, depB, useA (through their appropriate urls, ie /etc/clientlibs/depA.css

    If a page uses “useB” <cq:includeClientLib categories="useB"/>, then the HTML should have only a request for useB. The contents of /etc/clientlibs/useB.css would be the concatenation of contents of depB, depC, useB.

    The library manager at {localhost}/system/console/configMgr/com.day.cq.widget.impl.HtmlLibraryManagerImpl has a debug configuration to determine if the requests are ACTUALLY concatenated. This is documented at http://dev.day.com/docs/en/cq/current/deploying/configuring_osgi.html#par_variable_18

    To define multiple dependencies (assuming you are using maven to build from your filesystem and install into CQ5), the clientlibs folder will have a file “.content.xml” that needs the following attribute:

    dependencies="[depB,depC]"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add values from array to DB, have tried many variuos examples
I have tried many permutations but they all don't seems to work well. Am
I have tried multiple variations of the following code, but I still get the
I have a small problem, I have tried different solutions to add a image
Is it possible to add a form to an email newsletter? I have tried
I have tried searching over the internet about this problem but not able to
I am trying to add multiple spaces in my var but it get's cut
I have selected multiple columns from my table, but I don't know how to
I want to add horizontal scroll bar in select box.i have tried with div
I have multiple cookies with the same name, domain and path, but different values.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.