Ecom:CustomerCenter.SortBy[orderfield].Asc

Version: - string  

Summary

Returns a button for sorting order details ascending in the order list.

Settings

The value is generated automatically.

Remarks

It is possible to sort on all order fields, e.g. Ecom:CustomerCenter.SortByDate.Asc or Ecom:CustomerCenter.SortByID.Asc.

Examples

Outputting the template tag

@GetString("Ecom:CustomerCenter.SortBy[orderfield].Asc")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CustomerCenter.SortBy[orderfield].Asc"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:CustomerCenter.SortBy[orderfield].Asc"); }

Outputting the template tag

<!--@Ecom:CustomerCenter.SortBy[orderfield].Asc-->

Check if string has a value

<!--@If Defined(@Ecom:CustomerCenter.SortBy[orderfield].Asc)--> Let's output this tag here: <strong><!--@Ecom:CustomerCenter.SortBy[orderfield].Asc--></strong> <!--@EndIf(@Ecom:CustomerCenter.SortBy[orderfield].Asc)-->