News:Personalize.Text

Version: -  

Summary

Returns the unread news prefix.

Settings

The value comes from the Unread news prefix field under the paragraph settings.

(Page > Paragraph > Module tab > News list > (Advanced) > Display panel)

Examples

Outputting the template tag

@GetObject("News:Personalize.Text")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("News:Personalize.Text"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("News:Personalize.Text"); }

Outputting the template tag

<!--@News:Personalize.Text-->

Check if object has a value

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