Download the PHP package nswdpc/silverstripe-versioned-record-discovery without Composer
On this page you can find all versions of the php package nswdpc/silverstripe-versioned-record-discovery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nswdpc/silverstripe-versioned-record-discovery
More information about nswdpc/silverstripe-versioned-record-discovery
Files in nswdpc/silverstripe-versioned-record-discovery
Package silverstripe-versioned-record-discovery
Short Description Discover unpublished records in your Silverstripe install
License BSD-3-Clause
Informations about the package silverstripe-versioned-record-discovery
Versioned record discovery for Silverstripe
This module provides an extension to automatically add versioned listings to configured managed models in a ModelAdmin subclass.
At present, it provides:
- an unpublished modeladmin extension, to provide an unpublished view on configured records
- A report showing unpublished records per model class, based on your selection
This helps to solve a common question from our content editors "What remains to be published?"
Installation
Install using composer:
If you are new to creating ModelAdmins to allow easy manipulation of data in the administration area of a Silverstripe website, the ModelAdmin documentation is a great starting point.
Configuration
Report
The report will automatically show all versioned records in the system.
If you wish to set a different default model for the reporting view, set this in configuration (using the Page
class as an example):
Tab extension for the ModelAdmin
This is slightly more involved, but provides an unpublished record view directly in relevant modeladmins, without needing to fiddle with filters.
Example
Here is an example of a ModelAdmin with three managed models in a Silverstripe website.
We want to add 'unpublished' record listings in the modeladmin for the first two versioned record types, so our content editors can easily find the unpublished records.
An unpublished record is one that exists on the draft stage but not on the live stage. It may have been previously published and unpublished.
Note that the configured record classes must have the Versioned extension for this to work.
Add the unpublished_tabs configuration
Environment configuration
Apply the extension in YAML configuration
Build
Run a dev/build
+ flush=1
and you will see two new tabs in the relevant administration screen.
When clicked, they will list unpublished records only. The default configured $managed_models
remain untouched.
License
BSD-3-Clause
Maintainers
Add additional maintainers here and/or include authors in composer
Bugtracker
We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.
Please review the code of conduct prior to opening a new issue.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Please review the code of conduct prior to completing a pull request.
All versions of silverstripe-versioned-record-discovery with dependencies
silverstripe/versioned Version ^1.11.0
silverstripe/reports Version ^4.10.0