ParagraphImageCaption

Version: - string  

Summary

Returns the image caption for the current paragraph.

Settings

The value is based on the selection in the Image Caption field for the paragraph.
(Page > Paragraph > Content tab > Image settings)

Remarks

The value is returned as a HTML code snippet containing an img tag etc. within div tags.

Examples

Outputting the template tag

@GetString("ParagraphImageCaption")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@ParagraphImageCaption-->

Check if string has a value

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