NewsArchive_ctrl

Version: - string  

Summary

Returns a checkbox for determining whether the news item should be archived.

Settings

The value is generated automatically.

Remarks

The value is returned as a HTML code snippet containing an <input> tag.

Examples

Outputting the template tag

@GetString("NewsArchive_ctrl")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@NewsArchive_ctrl-->

Check if string has a value

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