FilepublishFileType

Version: - string  

Summary

Returns the file type of the current file.

Settings

The value is generated automatically.

Remarks

The value returned is the file extension, e.g. ".doc"

 

Examples

Outputting the template tag

@GetString("FilepublishFileType")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@FilepublishFileType-->

Check if string has a value

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