Forum:LastActiveThread.CategoryID

Version: - integer  

Summary

Returns ID of the forum category which last active thread belongs to.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("Forum:LastActiveThread.CategoryID")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Forum:LastActiveThread.CategoryID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Forum:LastActiveThread.CategoryID"); }

Outputting the template tag

<!--@Forum:LastActiveThread.CategoryID-->

Check if integer has a value

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