Item.Image.FocalX

Version: 9.6.0 integer  

Summary

Returns a number -100-100

Settings

The value relays to item type fiels type of  File used in content where Image - system name.

Remarks

Depends on 'Enable focal point selector for images' option in definition of item type fiels.

Examples

Outputting the template tag

@GetInteger("Item.Image.FocalX")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Item.Image.FocalX"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Item.Image.FocalX"); }

Outputting the template tag

<!--@Item.Image.FocalX-->

Check if integer has a value

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