Adds document upload support for pages.
Install via Composer (plumpss/documents
), as a Git submodule or download the repo and export into a directory within your project.
Add the DocumentsPageExtension
to any Page classes you want documents to be uploaded to. E.g. to add to all pages:
Page
extensions:
- DocumentsPageExtension
Remember to run dev/build
to update the database after enabling the extension.
The extension adds a 'Documents' tab in the CMS with a sortable grid field of documents that can be added to.
Documents are added as a has_many
so can be accessed in PHP as $page->Documents()
and in templates as $Documents
.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem