2017 © Pedro Peláez
 

silverstripe-module maxdocuments

Simple documents for any data object.

image

webmaxsk/maxdocuments

Simple documents for any data object.

  • Tuesday, February 20, 2018
  • by silverstripesk
  • Repository
  • 2 Watchers
  • 0 Stars
  • 149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

maxdocuments

Simple documents for any data object, (*1)

Installation

composer require "webmaxsk/maxdocuments:*"

You can add docs to any Page via CMS. You can disable docs for any Page subclass by adding config to mysite/_config.php:, (*2)

SilverStripe\ErrorPage\ErrorPage:
  documents:
    enabled: false
SilverStripe\CMS\Model\VirtualPage:
  documents:
    enabled: false
SilverStripe\CMS\Model\RedirectorPage:
  documents:
    enabled: false

The maximum number of docs can be also specified in the config using the following syntax (default is 20 for a page):, (*3)

SilverStripe\Blog\Model\BlogPost:
  documents:
    count: 50

You can add docs to any DataObject too, just extend DataObject with ObjectDocumentsExtension., (*4)

Usage

Add docs to your template, (*5)

<% include FilesToDownload %>

Example usage

check https://github.com/Webmaxsk/silverstripe-intranet-plate, (*6)

The Versions

20/02 2018

dev-master

9999999-dev

Simple documents for any data object.

  Sources   Download

BSD-3-Clause

The Requires

 

by Pali Ondras
by Rastislav Brandobur

silverstripe documents

20/02 2018

dev-ss3

dev-ss3

Simple documents for any data object.

  Sources   Download

BSD-3-Clause

The Requires

 

by Rastislav Brandobur

silverstripe documents