Control_ID

Version: - string  

Summary

Returns ID (system name) of the news custom field.

Settings

The value is based on the System name field in the news custom field settings.

(Management Center > Control Panel > News > Edit Custom fields -> Custom field -> Name)

Examples

Outputting the template tag

@GetString("Control_ID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Control_ID-->

Check if string has a value

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