![]() Install the Devel module just like any other and enable the Devel and the Devel Generate modules. How to generate dummy Drupal content with the Devel Generate 1) Installing the module One of the most prominent Devel features is Drush integration so it will be possible to choose between generating nodes via the UI or via the command-line interface. We will discuss them right now in the next part that explains how to work with Devel in Drupal. While doing this, the module offers many settings to make the process as accurate and useful as possible. However, to be more specific, Devel can also generate media, menus, users, taxonomy terms, and taxonomy vocabularies on your Drupal website. Speaking about Devel Generate, we are mostly using the word “content” to express the general idea of this automatic generation feature. You don’t want to see something like this on live websites, that’s why developers prefer to disable the Devel Generate module on the production environment (we have touched upon this in our blog post about the partially shared Drupal configuration). The text will be generated in fake Latin that resembles a phrase familiar to many readers - “Lorem ipsum dolor sit amet…” widely used to substitute the real text. For example, if there is an image field, it will add an image placeholder in the form of a colored block. The module generates entities based on their structure, field by field. For this purpose, we will mostly need the Devel Generate module that the Devel module comes packed with. The Devel module has multiple missions in enhancing a developer’s workflows, content generation being just one of them. Automatic dummy Drupal content generation Introduction to the Devel Generate module In this post, we will take a tour of how to create dummy Drupal content with the Devel module, how to make the content as realistic as possible with yet another Devel-related module - the Realistic Dummy Content, and how to use Drush commands for the same purposes if you prefer the Drupal console. ![]() This assistant is one of the favorite modules of Drupal developers - the Devel. ![]() Just a few clicks will be needed for filling the site with as many dummy entities as needed. Luckily, it is possible to “invite” an instant content generation assistant to your website. How to test everything well in various scenarios without content available? Developers or QA engineers are not editors - generating nodes for testing purposes can be a tedious task for them. However, at the stage of website building, when developers and themers are creating layouts, Views, and other things that shape the content structure, there is often no content ready yet. CMSs like Drupal offer website owners unlimited opportunities to add as much content as they need and when they need it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |