How to Add a Document to Your Site
Follow these steps to upload and link a document on your Drupal 10 website.
Step 1: Upload the Document
Navigate to Content > Media > Add Media > Document.
- Fill in the following fields:
- Name: Enter a name that describes the document.
Upload: Upload the document file (doc, pdf).
- Click the Save button.
Step 2: Get the Document Link
Go to Content > Media > Media Library.
- Find the document you just uploaded and click the Edit button.
Copy the URL alias path (e.g.,
/document/name-that-describes-the-document
).
Step 3: Add the Document Link to a Page
- Go to the page where you want to link the document.
- Highlight the text you want to turn into a link.
Click the link icon in the editor.
Paste the document’s URL path you copied earlier.
- Save the page.