> For the complete documentation index, see [llms.txt](https://mariohernandez.gitbook.io/components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariohernandez.gitbook.io/components/drupal-site-building/generate-content.md).

# Generate content

Since we will need blog posts to display on our homepage, let's create a few of them using the **Devel Generate** module. This module creates all kinds of content for us using lorem ipsum text. In addition to blog posts, we will also need to create a few user accounts and some taxonomy terms. Let's start

### Exercise: Create Taxonomy terms and users

1. Enable the **Devel Generate** module by going to the module's page in Drupal (Extend option from admin toolbar)
2. Search for **Devel** and you will see **Devel Generate**. Check the box next to it and click **Install**
3. From Drupal's admin toolbar click **Configuration > Development > Generate Terms**
4. Accept the defaults and click the **Generate** button
5. Repeat steps 3 & 4, but this time for **Users**

### **Generate blog posts**

1. From Drupal's admin toolbar click **Configuration > Development > Generate content**
2. Under **Content type** check \*\*Blog \*\* then click **Generate**
3. Be sure none of the blog posts are promoted to the frontpage.

We should now have plenty of blog posts to use. Some values in our content may be need to be tweaked as some content may be too long for our purpose.

### Promote blog posts to homepage

Pick two blog posts, edit them and choose **Promote to the frontpage from the Promotion Options** tag in the node edit page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mariohernandez.gitbook.io/components/drupal-site-building/generate-content.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
