News:ImageText

Version: - string  

Summary

Returns the caption text for the news items image.

Settings

The value is based on the Image caption input field in the Layout section for the news item.

(Modules tab > News > Category > News > Layout > Image caption)

Examples

Outputting the template tag

@GetString("News:ImageText")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("News:ImageText"); }

Outputting the template tag

<!--@News:ImageText-->

Check if string has a value

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