Lists
Summary
The Lists
loop lets you display various information about the lists.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:CustomerCenter.List.AccessUserId
Returns the ID of the user that created the list.
@GetString("Ecom:CustomerCenter.List.AccessUserId")
Ecom:CustomerCenter.List.AddURL
Returns an URL to the page with the create list form.
@GetString("Ecom:CustomerCenter.List.AddURL")
Ecom:CustomerCenter.List.CreateList
Returns an URL that can be used as Action in the list form if list mode is create.
@GetString("Ecom:CustomerCenter.List.CreateList")
Ecom:CustomerCenter.List.Description
Returns the description of the list.
@GetString("Ecom:CustomerCenter.List.Description")
Ecom:CustomerCenter.List.EditURL
Returns an URL that can be used as Action in the list form if list mode is edit.
@GetString("Ecom:CustomerCenter.List.EditURL")
Ecom:CustomerCenter.List.IsDefault
Returns True if the list is marked as default.
@GetBoolean("Ecom:CustomerCenter.List.IsDefault")
Ecom:CustomerCenter.List.IsPublished
Returns True if the list is marked as published.
@GetBoolean("Ecom:CustomerCenter.List.IsPublished")
Ecom:CustomerCenter.List.Link.Clean
Returns the URL to the list.
@GetString("Ecom:CustomerCenter.List.Link.Clean")
Ecom:CustomerCenter.List.Name
Returns the name of the list.
@GetString("Ecom:CustomerCenter.List.Name")
Ecom:CustomerCenter.List.ProductCount
Returns the number of different products in the list.
@GetInteger("Ecom:CustomerCenter.List.ProductCount")
Ecom:CustomerCenter.List.Publish
Returns an URL that publish the list.
@GetString("Ecom:CustomerCenter.List.Publish")
Ecom:CustomerCenter.List.PublishedId
Returns the token for the list that is used for the public URL.
@GetString("Ecom:CustomerCenter.List.PublishedId")
Ecom:CustomerCenter.List.PublishToDate
Returns the date that the list is published to.
@GetDate("Ecom:CustomerCenter.List.PublishToDate")
Ecom:CustomerCenter.List.RemoveURL
Returns an URL that removes/deletes the list.
@GetString("Ecom:CustomerCenter.List.RemoveURL")
Ecom:CustomerCenter.List.SendListPage
Returns an URL to the page with the send list as email form.
@GetString("Ecom:CustomerCenter.List.SendListPage")
Ecom:CustomerCenter.List.SendListURL
Returns an URL that can be used as Action in the email form.
@GetString("Ecom:CustomerCenter.List.SendListURL")
Ecom:CustomerCenter.List.TotalProductsQuantity
Returns the total number of products in the list.
@GetString("Ecom:CustomerCenter.List.TotalProductsQuantity")
Ecom:CustomerCenter.List.Type
Returns the type of the list.
@GetString("Ecom:CustomerCenter.List.Type")
Ecom:CustomerCenter.List.Unpublish
Returns an URL that unpublish the list.
@GetString("Ecom:CustomerCenter.List.Unpublish")
Ecom:CustomerCenter.ListTypes.List.ID
Returns the ID of the list.
@GetInteger("Ecom:CustomerCenter.ListTypes.List.ID")
Ecom:CustomerCenter.ListTypes.List.Name
Returns the name of the list.
@GetString("Ecom:CustomerCenter.ListTypes.List.Name")
Available loops
Ecom:CustomerCenter.DefaultList.ProductsList
The Ecom:CustomerCenter.DefaultList.ProductsList​
loop lets you display various information about the default list and products in the list.
@foreach (LoopItem item in GetLoop("Ecom:CustomerCenter.DefaultList.ProductsList")){ <p>@item.GetValue("TagName")</p> }
Ecom:CustomerCenter.List.ProductsList
The Ecom:CustomerCenter.List.ProductsList​
loop lets you display various information about the list and products in the list.
@foreach (LoopItem item in GetLoop("Ecom:CustomerCenter.List.ProductsList")){ <p>@item.GetValue("TagName")</p> }