Forum:LastThread.Body

Version: - string  

Summary

Returns body text for the last thread.

Settings

The value is generated automatically.

Remarks

Avaialble for ContentAppIndexProviders with content has Forum module only

Examples

Outputting the template tag

@GetString("Forum:LastThread.Body")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Forum:LastThread.Body"); }

Outputting the template tag

<!--@Forum:LastThread.Body-->

Check if string has a value

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