LangID

Version: - string  

Summary

Returns the language ID of the news item that the comment is added to.

Settings

The value is based on the value in the Comment.LangID input field in the comments code:

<input type="hidden" name="Comment.LangID" value="@langId" />

Remarks

Only used if comments are used on products.

Examples

Outputting the template tag

@GetString("LangID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@LangID-->

Check if string has a value

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