Projet

Général

Profil

Paste
Télécharger (7,27 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / docs / FAQ.md @ 5024cef7

1 caf16a48 Assos Assos
<!-- @file Frequently Asked Questions -->
2
<!-- @defgroup -->
3
# FAQ - Frequently Asked Questions
4
5
- [Do you support X module?](#support)
6
- [Do you support Internet Explorer?](#ie)
7
- [Is Drupal Bootstrap a module or theme?](#module-or-theme)
8 eefc2ac0 Assos Assos
- [What does the JavaScript error `TypeError: $(...).on is not a function`
9
  mean?](#jquery)
10 caf16a48 Assos Assos
- [Where can I discuss an issue in real time?](#irc)
11
- [Where should I make changes?](#changes)
12
- [Why are my sub-theme's `.info` settings ignored?](#theme-settings-ignored)
13
14
---
15
16
### Q: Do you support X module? {#support}
17
**A: Possibly**
18
19
Below are a list of modules the [Drupal Bootstrap] base theme actively supports.
20
This list is constantly growing and each module's support has usually been
21
implemented because of either extremely high usage or the fact it was designed
22
explicitly for use with this base theme and has maintainers in both projects.
23
24
**Supported modules:**
25
- [Admin Menu](https://www.drupal.org/project/admin_menu)
26
- [Bootstrap Core](https://www.drupal.org/project/bootstrap_core)
27 4eeb3b46 Assos Assos
- [Disable Messages](https://www.drupal.org/project/disable_messages)
28 caf16a48 Assos Assos
- [jQuery Update](https://www.drupal.org/project/jquery_update)
29
- [Icon API](https://www.drupal.org/project/icon)
30 749b8a23 Assos Assos
- [Path Breadcrumbs](https://www.drupal.org/project/path_breadcrumbs)
31 caf16a48 Assos Assos
- [Picture](https://www.drupal.org/project/picture)
32
- [Views](https://www.drupal.org/project/picture) _(partial support)_
33
- [Webform](https://www.drupal.org/project/webform) _(partial support)_
34
35
The following modules are "un-supported modules" and are not documented by the
36
[Drupal Bootstrap] base theme. This does not mean that the base theme will not
37
work with them or that they are "bad". It simply means that this project does
38
not have the time, energy or effort it would take to document "every possible
39
scenario".
40
41
It is certainly possible that some of these modules may eventually become
42
"officially" supported. That will happen only, of course, if there are enough
43
people to help contribute solid solutions and make supporting them by the base
44
theme maintainers a relatively "easy" task.
45
46
Some of these modules may have blogs or videos floating around on the internet.
47
However, if you choose to use one of these modules, you are really doing so
48
at your own expense. Do not expect support from this base theme or the project
49
you are attempting to integrate the base theme with.
50
51
**"Un-supported" modules:**
52
- Color module (in core)
53
- [Bootstrap API](https://www.drupal.org/project/bootstrap_api)
54
- [Bootstrap Library](https://www.drupal.org/project/bootstrap_library)
55
- [Display Suite](https://www.drupal.org/project/ds)
56
- [Display Suite Bootstrap Layouts](https://www.drupal.org/project/ds_bootstrap_layouts)
57 9525582e Assos Assos
- [LESS module](https://www.drupal.org/project/less)
58 caf16a48 Assos Assos
- [Panels](https://www.drupal.org/project/panels)
59
- [Panels Bootstrap Layouts](https://www.drupal.org/project/panels_bootstrap_layouts)
60
61
---
62
63
### Q: Do you support Internet Explorer? {#ie}
64
**A: No, not "officially"**
65
66
The [Bootstrap Framework] itself does not officially support older Internet
67 9525582e Assos Assos
Explorer [compatibility modes](https://getbootstrap.com/docs/3.3/getting-started/#support-ie-compatibility-modes).
68 caf16a48 Assos Assos
To ensure you are using the latest rendering mode for IE, consider installing
69 9525582e Assos Assos
the [HTML5 Tools](https://www.drupal.org/project/html5_tools) module.
70 caf16a48 Assos Assos
71
Internet Explorer 8 requires the use of [Respond.js] to enable media queries
72
(Responsive Web Design). However, [Respond.js] does not work with CSS that is
73
referenced via a CSS `@import` statement, which is the default way Drupal
74
adds CSS files to a page when CSS aggregation is disabled. To ensure
75
[Respond.js] works properly, enable CSS aggregation at the bottom of:
76
`admin/config/development/performance`.
77
78
---
79
80
### Q: Is Drupal Bootstrap a module or theme? {#module-or-theme}
81
**A: Theme**
82
83
More specifically a base theme. It is _not_ a module. Modules are allowed to
84
participate in certain hooks, while themes cannot. This is a very important
85
concept to understand and limits themes from participating in a wider range of
86
functionality.
87
88
---
89
90
### Q: What does the JavaScript error `TypeError: $(...).on is not a function` mean? {#jquery}
91
Drupal 7 ships with the `1.4.4` version of jQuery out-of-the-box. The [$.on()](http://api.jquery.com/on/)
92
method was introduced several versions after this in jQuery version `1.7`.
93
94
You must upgrade your site or sub-theme's jQuery Version by installing (and
95
properly configuring) the [jQuery Update] module to use a jQuery version
96
compatible with the [Bootstrap Framework]. This is typically a version greater
97
than or equal to `1.9`.
98
99
Ensuring jQuery compatibilities between Drupal, the [Bootstrap Framework] and
100
other plugins/modules does not fall within the scope of this base theme's
101
documentation or support.
102
103
---
104
105
### Q: Where can I discuss an issue in real time? {#irc}
106
**A: In IRC**
107
108
The [Drupal Bootstrap] project and its maintainers use the `#drupal-bootstrap`
109
channel on the freenode.net IRC network to communicate in real time. Please read
110
the following for more information on how to the community uses this technology:
111
[Chat with the Drupal Community on IRC](https://www.drupal.org/irc).
112
113
Please keep in mind though, this **IS NOT** a "support" channel. It's primary
114
use is to discuss issues and to help fix bugs with the base theme itself.
115
116
---
117
118
### Q: Where should I make changes? {#changes}
119
**A: In a custom sub-theme**
120
121
You should **never** modify any theme or sub-theme that is packaged and released
122
from Drupal.org. If you do, all changes you have made would be lost once that
123
theme is updated. This makes keeping track of changes next to impossible.
124
125
Instead, you should create a custom sub-theme that isn't hosted on Drupal.org.
126
127
[Drupal Bootstrap]: https://www.drupal.org/project/bootstrap
128 9525582e Assos Assos
[Bootstrap Framework]: https://getbootstrap.com/docs/3.3/
129 caf16a48 Assos Assos
[Respond.js]: https://github.com/scottjehl/Respond
130
131
---
132
133
### Q: Why are my sub-theme's `.info` settings ignored? {#theme-settings-ignored}
134
**A: The database contains a copy of the theme settings and they take
135
precedence over theme settings stored in the `.info` file.**
136
137
This is actually quite a common issue whenever a theme's settings are saved
138
from the UI. This action stores the settings in the {variables} table of the
139
database. The workflow for theme_get_setting() merges the settings from the
140
database on top of the settings found in the theme's `.info` file.
141
142
You need to remove the variable `theme_[theme_name]_settings` from the database,
143
where `[theme_name]` is your sub-theme's machine name (e.g. if your sub-theme
144
machine name is `my_bootstrap_subtheme`, the variable name would be
145
`theme_my_bootstrap_subtheme_settings`).
146
147
The easiest way to do accomplish this task is to use the following [Drush]
148
command: `theme_my_bootstrap_subtheme_settings`
149
150
If you do not have or use [Drush], you will either have to manually delete this
151
variable from the database or create an [update hook](https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_update_N/7)
152
in a custom module that deletes the variable for you:
153
154
```php
155
/**
156
* Remove the 'theme_my_bootstrap_subtheme_settings' variable.
157
*/
158
function hook_update_N() {
159
  variable_del('theme_my_bootstrap_subtheme_settings');
160
}
161
```
162
163
[Drush]: http://www.drush.org
164
[Drupal Bootstrap]: https://www.drupal.org/project/bootstrap
165 9525582e Assos Assos
[Bootstrap Framework]: https://getbootstrap.com/docs/3.3/
166
[jQuery Update]: https://www.drupal.org/project/jquery_update