install_prereqs.rst 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Tripal Prerequisites
  2. ====================
  3. Tripal v3.x requires several Drupal modules. These include `Entity <https://www.drupal.org/project/entity>`_, `Views <https://www.drupal.org/project/views>`_, `CTools <https://www.drupal.org/project/ctools>`_, `Display Suite <https://www.drupal.org/project/ds>`_, `Field Group <https://www.drupal.org/project/field_group>`_, `Field Group Table <https://www.drupal.org/project/field_group_table>`_, `Field Formatter Class <https://www.drupal.org/project/field_formatter_class>`_ and `Field Formatter Settings <https://www.drupal.org/project/field_formatter_settings>`_ modules. Modules can be installed using the graphical Drupal website by clicking on the Modules link in the top adminstrative menu bar. Instructions for instaling Modules via the web-interface can be found here: https://www.drupal.org/documentation/install/modules-themes/modules-7. However, Drush can be quicker for module installation. The following instructions will show how to install a module using the Drush command-line tool.
  4. First, install the Entity module. We will download the current version using the drush command. On the command-line, execute the following:
  5. .. code-block:: bash
  6. cd /var/www/html/sites/all/modules
  7. drush pm-download entity
  8. Typically for all module installation we should check the README for additional installation instructions. Next, enable the module using a drush command:
  9. .. code-block:: bash
  10. drush pm-enable entity
  11. For basic Tripal functionality you must also enable the Views and CTools modules. You can specify as many module as desired on one line:
  12. .. code-block:: bash
  13. drush pm-download views ctools
  14. drush pm-enable views views_ui ctools
  15. Finally, Tripal works best when it can provide default display layouts. To support default layouts you must also enable the remainig dependencies:
  16. .. code-block:: bash
  17. drush pm-download ds field_group field_group_table field_formatter_class field_formatter_settings
  18. drush pm-enable ds field_group field_group_table field_formatter_class field_formatter_settings
  19. Optionally, you can install the ckeditor module. This module provides a nice WYSIWYG editor that allows you to edit text on your site using a graphical editor. Otherwise, if you need images or formatting (e.g. underline, bold, headers) you would be required to write HTML. It is recommended that this module be installed to improve the user experience:
  20. .. code-block:: bash
  21. drush pm-download ckeditor
  22. drush pm-enable ckeditor