FilepublishFileLink

Version: - string  

Summary

Returns the link to the file.

Settings

The value is generated automatically.

Remarks

/Admin/Public/Download.aspx?File= is added to the link if Force download is enabled in Page > Paragraph > Module tab > Display panel.

Examples

Outputting the template tag

@GetString("FilepublishFileLink")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("FilepublishFileLink"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("FilepublishFileLink"); }

Outputting the template tag

<!--@FilepublishFileLink-->

Check if string has a value

<!--@If Defined(@FilepublishFileLink)--> Let's output this tag here: <strong><!--@FilepublishFileLink--></strong> <!--@EndIf(@FilepublishFileLink)-->