Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By TuTToWeB on
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
dependencies are other
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
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
and how can I fix the problem
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.