Dear all,
I would like to include colorbox in my theme, as I need it to show some overlay information. Inside the yaml of my theme, I added

papers:
  version: 1.x
  css:
    theme:
      css/papers.css: {}
  js:
    js/papers.js: {}
  dependencies:
    - modules/colorbox

but colorbox is not loaded. Of course both module and library are currently installed inside their paths, but I would like to have colorbox always loaded for this purpose.

Looking forward to hearing from you

Thanks in advance
vg

Comments

Jeff Burnz’s picture

dependencies are other libraries, not extensions like a module. At this time themes cannot depend on a module, but hopefully this will change shortly: https://www.drupal.org/node/474684

TuTToWeB’s picture

and how can I fix the problem? A work-around would be to add colorbox inside my theme, bypassing the module, but I wanna avoid this solution.