Drupal:drush

From EWBTechies Wiki

Jump to: navigation, search

Contents

[edit] Drush and Voting

[edit] Story

Since you are an uber nerd you want to do all these updates via the command line.. and you heard that this thing called "drush" will bring yout here

[edit] Goal

  • Learn how to use drush in dayto day drupal development

[edit] Reference Material

[edit] Instructions

  1. Install drush in your command line
  2. Using drush and the command line, enable and install the fivestar rating module and voting api module
    1. drush dl fivestar votingapi
    2. drush enable fivestar
  3. Allow all users to rate
  4. Configure the geek content type so it can be ratable
  5. In the recent-content-sidebar-block, display the numeric average of each displayed content
    1. in the view, add a relationship Node: Vote Results
    2. add the field from Vote Results ( don't make it clickable from the view)
    3. You may need to tweek the parameters of the relationship to make sure you are not seeing duplicates
  6. Using drush and the command line, update your feature's code and commit it in to the repository
    1. drush features update geek
    2. type svn diff and see the file changes and now commit to the repo
Personal tools