GetPreviewLink (open)

Get a preview link for a page

Syntax

LOADLIB "mod::publisher/lib/preview.whlib";

STRING FUNCTION GetPreviewLink(INTEGER fsobject, RECORD options)

Parameters

INTEGER fsobject

FS object to show (live version)

RECORD options

Options

password

Password to protect the preview with

validuntil

Validity of the link. Defaults to 1 day

version

Exact version to view (eg a draft).

Return value

STRING

Preview url. An empty URL if this object cannot be previewed (the site has no output URL)