plumpss/documents

SilverStripe module for attaching documents to pages.

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Type:silverstripe-module

0.2.1 2015-02-24 20:03 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:53:20 UTC


README

Adds document upload support for pages.

Usage

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.