TruePeople.SharePreview.v7 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TruePeople.SharePreview.v7 --version 1.0.0                
NuGet\Install-Package TruePeople.SharePreview.v7 -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TruePeople.SharePreview.v7" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TruePeople.SharePreview.v7 --version 1.0.0                
#r "nuget: TruePeople.SharePreview.v7, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TruePeople.SharePreview.v7 as a Cake Addin
#addin nuget:?package=TruePeople.SharePreview.v7&version=1.0.0

// Install TruePeople.SharePreview.v7 as a Cake Tool
#tool nuget:?package=TruePeople.SharePreview.v7&version=1.0.0                

TruePeople.SharePreview.v7

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.

Installation

Install the package via NuGet or clone this repository and build a local NuGet package yourself.

Settings

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.

How to share a preview?

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.

How does it work?

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.

How to run this on your local machine?

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.

Changelog

v1.0.0

  • Initial package release for Umbraco v7

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 487 3/23/2022
1.0.2 426 3/1/2022
1.0.1 419 2/10/2022
1.0.0 417 2/8/2022