简体   繁体   English

成瘾模块drupal 7

[英]addiction modules drupal 7

I'm using version 7 of Drupal and I'm adding additional modules, in particular the modules of Open Atrium. 我正在使用Drupal的版本7,并添加了其他模块,尤其是Open Atrium的模块。

When I add a module I have many required modules set to "missing" and I can't activate the module. 添加模块时,我将许多必需的模块设置为“缺少”,并且无法激活该模块。

Can I install a module and automatically all dependent modules? 我可以安装一个模块并自动安装所有相关模块吗?

Alternatively I have to manually install more than 100 modules. 另外,我必须手动安装100多个模块。

Thank you. 谢谢。

You can use drush to download and enable modules. 您可以使用drush下载和启用模块。

Here you have all the info for installing drush: https://drupal.org/node/1791676 在这里,您具有安装drush的所有信息: https ://drupal.org/node/1791676

for example: 例如:

>drush dl views

Project views (7.x-3.7) downloaded to /var/www/drupal_7_test/sites/all/modules/views.                                                                                                               [success]
Project views contains 2 modules: views_ui, views.

this will download views module only, then you can enable it and if the module have declare dependencies, drush will download and enable it. 这将仅下载views模块,然后您可以启用它,如果该模块具有声明依赖项,则drush将下载并启用它。

>drush en views

The following projects have unmet dependencies:
views requires ctools
Would you like to download them? (y/n): y
Project ctools (7.x-1.4) downloaded to /var/www/drupal_7_test/sites/all/modules/ctools.                                                                                                             [success]
Project ctools contains 10 modules: ctools_plugin_example, ctools_ajax_sample, bulk_export, ctools_custom_content, term_depth, stylizer, views_content, page_manager, ctools_access_ruleset, ctools.
The following extensions will be enabled: views, ctools
Do you really want to continue? (y/n): y
ctools was enabled successfully.                                                                                                                                                                    [ok]
views was enabled successfully. 

Not all modules have declare such dependecies and you should install them manually but as you can see is an easy task with drush. 并非所有模块都声明了这种依赖关系,您应该手动安装它们,但是您可以看到,使用drush可以轻松完成任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM