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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

  1. an unpublished modeladmin extension, to provide an unpublished view on configured records
  2. 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

PHP Build Version
Package Version
Requires silverstripe/admin Version ^1.11.0
silverstripe/versioned Version ^1.11.0
silverstripe/reports Version ^4.10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nswdpc/silverstripe-versioned-record-discovery contains the following files

Loading the files please wait ....