Field.Image

Version: - string  

Summary

Returns the name of the image file for the image field.

Settings

The value is based on the Image field in in the image field settings.

(Modules > Forms for editors > Form > Edit image field > Settings > Image)

Remarks

Only available for the image field/element.

Examples

Outputting the template tag

@GetString("Field.Image")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Field.Image"); }

Outputting the template tag

<!--@Field.Image-->

Check if string has a value

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