Click or drag to resize

PFFieldFileHolderValueGetLinkHTML Method

Build an HTML anchor link pointing to the specified PFFile.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public static Html GetLinkHTML(
	string url,
	string filename,
	bool showThumb = false,
	bool enablePreviewModal = true,
	string altUrl = ""
)

Parameters

url
Type: SystemString
The PFFile URL.
filename
Type: SystemString
The PFFile filename.
showThumb (Optional)
Type: SystemBoolean
Whether a thumbnail should be shown before the link text (when available).
enablePreviewModal (Optional)
Type: SystemBoolean
Whether clicking the link should open a preview modal (when available).
altUrl (Optional)
Type: SystemString
Sets the value of the "altUrl" attribute of the anchor tag (can be used to specify an alternative URL for this link).

Return Value

Type: Html
See Also