ParagraphHeader

Version: - string  

Summary

Returns the name of the current paragraph.

Settings

The value comes from the Paragraph name field for the paragraph.
(Page > Paragraph > Content tab)

Examples

Outputting the template tag

@GetString("ParagraphHeader")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@ParagraphHeader-->

Check if string has a value

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