Ecom:CustomerCenter.MyFavorites
Version: - stringSummary
Returns a button for navigating to My favorites.
Settings
The value is generated automatically based on the My favorites menu text settings under the paragraph settings.
(Page > Paragraph > Module tab > Menu texts panel).
Examples
Outputting the template tag
@GetString("Ecom:CustomerCenter.MyFavorites")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CustomerCenter.MyFavorites"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:CustomerCenter.MyFavorites");
}
Outputting the template tag
<!--@Ecom:CustomerCenter.MyFavorites-->
Check if string has a value
<!--@If Defined(@Ecom:CustomerCenter.MyFavorites)-->
Let's output this tag here: <strong><!--@Ecom:CustomerCenter.MyFavorites--></strong>
<!--@EndIf(@Ecom:CustomerCenter.MyFavorites)-->