AppItemId

Version: - string  

Summary

Returns the ID of the app item.

Settings

The value is generated automatically. 

Remarks

Avaialble for ContentAppIndexProviders only.

Examples

Outputting the template tag

@GetString("AppItemId")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@AppItemId-->

Check if string has a value

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