Can you figure out how you might share this new local development configuration with others on your team so that you can all work on similarly configured environments?.Execute the ddev help command in your terminal and browse the additional ddev commands.It should contain either real or dummy content that you can use when previewing your theme during development. You now have real pages to practice theming! RecapĪfter completing this exercise you should have a working copy of Drupal that you can access on your local development environment. Verify generated content at Content ( admin/content).Verify generated terms at Structure > Taxonomy > Tags (select List terms) ( admin/structure/taxonomy/manage/tags/overview).Verify generated users at People ( admin/people).You can verify that the commands worked by visiting the following administrative pages: (Check both Article and Basic Page content types. (Optional) Maximum depth for new terms in the vocabulary hierarchy: 1. You can find this UI on the Configuration page in the Development section (after enabling Devel Generate on the Extend ( admin/modules) page). Without ddev drush devel-generate-users 10ĭrush devel-generate-terms 20 -bundles tags -max-depth 1Īlternatively, if you didn't install Drush, use the administrative UI to generate users, tags, and content. ddev drush devel-generate-users 10ĭdev drush devel-generate-terms 20 -bundles tags -max-depth 1 We recommend you run the commands in the order that follows so that the content you generate is assigned to random users to simulate a more realistic experience. Exercise: Install Drupal and generate dummy contentĭevel Generate comes with custom Drush commands that we can use to generate users, tags, and content. We've copied instructions from the Drupal Official Docs Local Development Guide in the following steps. Recommendation: Use DDEV to install Drupal You should also be comfortable using the command line to navigate the file system and run commands. See DDEV Documentation and follow the installation instructions for your operating system. To use DDEV, you should have DDEV installed (which has its own set of prerequisites, such as Docker).Ability/permissions to download software to your local machine.Set up a local development environment with Drupal installed and dummy content generated so that there are real pages on your site for you to theme. Generate dummy content so that you have different kinds of pages to theme.Install Drupal on your computer so you can modify files with a code editor of your choice.In order to practice theme development, either on your own or following our Hands-On: Theming guide, you'll need a Drupal site up and running on your computer.īy the end of this tutorial, you should be able to: Set up a local development environment to practice Drupal theme development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |