Skip to content
Share draft page content with non-CMS users
PHP JavaScript CSS Scheme Gherkin
Branch: 2
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows META: Add github action to build docs Dec 19, 2019
_config
client Upgrade dependencies Nov 17, 2019
docs/en/userguide DOCS Update folder structure for userhelp.org Aug 6, 2018
src Merge branch '2.2' into 2.3 Feb 13, 2020
templates
tests
.editorconfig Add Behat test for generating link in popover and add npm build test … Jul 11, 2018
.eslintignore Refactor webpack implementation, separate CMS and frontend bundles, a… Jul 11, 2018
.eslintrc.js Refactor webpack implementation, separate CMS and frontend bundles, a… Jul 11, 2018
.gitattributes Minor changes for update Dec 14, 2017
.gitignore Refactor webpack implementation, separate CMS and frontend bundles, a… Jul 11, 2018
.nvmrc Add .nvmrc May 5, 2019
.sass-lint.yml Refactor webpack implementation, separate CMS and frontend bundles, a… Jul 11, 2018
.scrutinizer.yml Minor changes for update Dec 14, 2017
.travis.yml Merge branch '2.2' into 2.3 Feb 13, 2020
.upgrade.yml API Implement namespacing, tweaks for SS4 API changes Jan 26, 2017
_config.php
behat.yml Add Behat test for generating link in popover and add npm build test … Jul 11, 2018
code-of-conduct.md Update configuration, CI, readme, composer for SS4 compatibility Jan 25, 2017
codecov.yml FIX Vendorise module, add autoloader, remove constant from _config.php Oct 13, 2017
composer.json NEW Update to use React 16 and bump minimum SilverStripe version to 4.4 May 3, 2019
contributing.md
license.md Update configuration, CI, readme, composer for SS4 compatibility Jan 25, 2017
package.json Upgrade dependencies Nov 17, 2019
phpcs.xml.dist Add codesniffer rules Dec 14, 2017
phpunit.xml.dist FIX Vendorise module, add autoloader, remove constant from _config.php Oct 13, 2017
readme.md DOCS Update minimum requirement in readme May 3, 2019
webpack.config.js Refactor webpack implementation, separate CMS and frontend bundles, a… Jul 11, 2018
yarn.lock

readme.md

Share Draft Content

Build Status Scrutinizer Code Quality codecov SilverStripe supported module Version License

Share draft page content with non-CMS users.

Overview

This module adds a 'Share draft' action menu to the CMS. This enables Content Authors to generate tokenised links to draft pages. Content authors can share these links with anyone, allowing non-CMS user to view draft page content. Each preview link is valid for 30 days.

Requirements

  • SilverStripe ^4.4

Note: this version is compatible with SilverStripe 4. For SilverStripe 3, please see the 1.x release line. Previous 2.x releases exist for earlier SilverStripe 4.x versions.

Installation

The easiest way to install is by using Composer:

$ composer require silverstripe/sharedraftcontent

You'll also need to run dev/build. You should now see a link/button on the bottom-right of edit pages. Clicking the link will generate a new share link.

Developer Tools

Get the dependencies by running npm install.

After making changes to SCSS files, run the build script npm run build. This will compile everything for you and output minified CSS files to the css directory.

Share Links

The generated share links have a public key and hash. There can be any number of share links per-page, but all share links are unique, and cannot be used to gain access to pages other than the one each link was created for.

Versioning

This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with public visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep protected methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.

Reporting Issues

Please create an issue for any bugs you've found, or features you're missing.

You can’t perform that action at this time.