Add a related documents list
This page is for editors who want a "Documents" or "See also" list on a page. Exponential reuses content by relations: a document is one File object, and every page that needs it points to it (Relations and reuse).
Contents
Before you start
- Check whether the page's class has a relation field (for example Related documents, Documents or Attachments); the field type is Relation. If not, use embeds in rich text, or ask the web team to add a field.
- Know whether the documents already exist on the site (search first).
Steps with a relation field
- Open the page, Edit.
- In the relation field:
- Add existing: browse or search for the document, select it, confirm;
- Upload new: choose a file from your computer; it becomes a File object and is related.
- Repeat for each document; the order in the field is the order on the page (move items if the field allows it).
- Send for publishing.
Steps with embeds in the text
- In a rich text field, place the cursor where the link should be.
- Use Embed object (or the link dialog) and pick the document; choose a view that shows it as a link.
- Embeds create relations too, so the document's reverse relations list this page.
Check the result
- To do: Signed out, the list shows each document with its name, format and size.
- To do: On a document, the Relations tab, Reverse related objects, lists the pages that use it.
Pitfalls
| Pitfall | Avoid it |
|---|---|
| Uploading the same PDF again for each page | search and use Add existing |
| Removing a document still related elsewhere | the remove confirmation lists the pages; fix them first |
| Link text "Document 1" | give File objects real titles |
| Relations to hidden or restricted content | visitors see a missing item; relate public content |
Related pages
- Publishing tasks
- Upload a PDF report with an accessible summary
- Creating and editing content: relations and images
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.