Item.Image.ImageHasFocalPoint

Version: 9.6.0 boolean  

Summary

Returns True or False if x or y <>0

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

@GetBoolean("Item.Image.ImageHasFocalPoint")

Check if tag has a value

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

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Item.Image.ImageHasFocalPoint"); }

Outputting the template tag

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

Check if boolean has a value

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