Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Fake it till you make it, one-liner to generate content for a Drupal site

Parent Feed: 

Devel Generate is great module for putting some dummy content on your site.  You can generate taxonomy terms and vocabs, users, nodes and menus.  Other modules, such as the voting API also plugin to it to generate votes.  

Devel Generate also has great Drush support.  This little one liner will build a site with a few vocabularies, a couple dozen terms, some users, some content and a menu or two.

VOCAB=$(drush genv --kill 3 2>&1 | tail -3 | head -n1) && drush gent --kill $VOCAB 20 && drush --kill genu 50 && drush --kill genc 200 && drush --kill genm 5

I have an alias for it, ($alias make_me_stuff='the command above') so when I'm starting a new project I can just hop in to the docroot and run: make_me_stuff

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web