Questions tagged [.info]
Use it for questions about the file containing information about modules and themes.
11
questions with no upvoted or accepted answers
2
votes
0
answers
302
views
How to use a module-relative path to translations in .info.yml
I'm new to using Drupal and am building a custom module to learn how it all works.
I'm building my module in modules/custom/my_module. I have a Dutch locale file in modules/custom/my_module/...
1
vote
1
answer
58
views
How to exclude recursive module dependencies?
Is there a way to exclude dependencies of dependencies? For example:
my_module.info contains
dependencies[] = views
dependencies[] = ctools
my_sub_module.info contains
dependencies[] = my_module
...
1
vote
0
answers
26
views
File paths aren't pulling in images or stylesheets
I'm sure I'm not the first person to run into this but I can't find another post about it.
I'm pretty new to drupal and I'm taking a swing at theming. I'm running into problems right out of the gate....
1
vote
1
answer
337
views
Remove js file by template or add condition in info file
I work on drupal 7, I added all js by info file, work well in whole site. But we want to remove or not load of a specific js in a specific content type page.
I try by template.php of following code
...
0
votes
1
answer
35
views
Custom Module Remote Fails Checksum with Drush
Background
I have several proprietary Drupal modules that my company uses. We want to update these across all our sites. To that end, I've built an endpoint that produces code according to the (ill-...
0
votes
1
answer
97
views
Why is the CSS for my theme not loading while the JS is?
Theme mytheme is placed under /sites/all/themes/
Content of mytheme.info.yml :
name: My Theme
type: theme
description: Custom theme.
core: 8.x
base theme: classy
version: 8.x-1.0
libraries:
- ...
0
votes
0
answers
56
views
Is it possible to add a dependency file from another module in my module.info?
In the docs:
files (Optional)
Drupal supports a dynamic-loading code registry. To support it, all modules must declare any code files containing class or interface
declarations in the .info ...
0
votes
1
answer
47
views
including javascript via theme.info doesn't work.
I'm trying to include a simple javascript into my theme using the theme.info
It works like a charm on my home-setup but when I try to load in on a real page it doesn't include the .js-files (not ...
0
votes
0
answers
85
views
Subtheme's newly created CSS files aren't working
I'm currently using Zen for my subtheme, and attempting to add CSS to my .info file, but all my effort is for naught. The .info file is in my subtheme's root, and is named as such - mytheme.info. When ...
0
votes
0
answers
216
views
Unset specific css files defined in the .info file
I am trying to unset specific CSS files that I have included in the .info file in specific languages. For example, I have Arabic as a language option in my website, and I am including the ar.css file ...
0
votes
1
answer
669
views
JavaScript files not loading
The JavaScript files for my theme aren't loading. What am I missing?
My theme.info.yml:
name: theme
type: theme
description: Custom theme.
core: 8.x
base theme: classy
version: 8.x-1.0
libraries:
-...