NewsActiveFrom_ctrl

Version: - string  

Summary

Returns dropdowns for specifying the start date of the news item.

Settings

The value is generated automatically.

Remarks

The value is returned as HTML select tags.

Examples

Outputting the template tag

@GetString("NewsActiveFrom_ctrl")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@NewsActiveFrom_ctrl-->

Check if string has a value

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