ParagraphModule

Version: - string  

Summary

Returns the output from the module attached to the current paragraph.

Settings

The value is generated automatically based on the settings and templates of the module attached to the current paragraph.
(Page > Paragraph > Module tab)

Remarks

The module attached to a paragraph does not replace the paragraph, but is inserted into the paragraph instead of the ParagraphModule tag. The ParagraphModule tag is used on Paragraph templates.

Examples

Outputting the template tag

@GetString("ParagraphModule")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@ParagraphModule-->

Check if string has a value

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