Share preview URLs with non-Umbraco users! This project has been backported by Rhythm to Umbraco 7 from the original TruePeople.SharePreview plugin for Umbraco 8.
Install the package via NuGet or clone this repository and build a local NuGet package yourself.
In the settings section you will see a new tree node 'Shareable Preview settings', here you can manage the encryption key that will be used to generate the shareable preview URL. You can also manage the URL a user will get redirected to when the link isn't valid anymore.
After installation you will see a new button next to the 'Preview' button on your content nodes. When the newest version is published, this button will be disabled. Clicking on this button will directly copy the link to your clipboard.
The link generated will remain valid until the version that the link was generated on has been published. When someone tries to access the link then, they will be redirected to the URL you configured in the settings.
The generated link consists of the node ID and a version ID of the preview version. We render the correct content by using a custom route and having our own UmbracoVirtualNodeRouteHandler implemented. The handler takes care of checking if the link is still valid and for setting the preview content to the current request.
Clone this repository to your machine. Run the build.ps1 script that is located in the package folder. Specify what version you would like to give the build, and if you want to package it up for Umbraco or NuGet. This will generate the packages inside the same folder.
- Fixed stack overflow exception bug when trying to preview content that has never been published before
- Fixed null exception bug when checking if a shareable link exists for content without a template
- Fixed bug where switching tabs in the backoffice would cause the share button to be hidden
- Changed package build files to copy release DLLs instead of debug ones
- Initial package release for Umbraco v7