ParagraphText

Version: - string  

Summary

Returns the text of the current paragraph.

Settings

The value comes from text editor for the paragraph.
(Page > Paragraph > Content tab)

Remarks

The value is returned as a HTML snippet, containing all text, images, HTML codes etc. in the paragraph text.

Examples

Outputting the template tag

@GetString("ParagraphText")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@ParagraphText-->

Check if string has a value

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