LeadsMail:PagesVisited
Summary
The Loop returns metadata related to page visited by the lead.
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.
<table>
<tr>
@foreach (LoopItem item in GetLoop("LeadsMail:PagesVisited") {
<td> @item.GetValue("Relevant.Tag") </td>
}
</tr>
</table>
Check if the loop exists
@if (Loops.Contains("LeadsMail:PagesVisited")) {
...
}
Example of usage
The following general example illustrates how to use a loop construct.
<table>
<!--@LoopStart(LeadsMail:PagesVisited)-->
<tr>
<td><!--@Loop:Tag--></td>
</tr>
<!--LoopEnd(LeadsMail:PagesVisited)-->
</table>
Check if the loop exists
<!--@If LoopDefined(LeadsMail:PagesVisited)-->
...
<!--@EndIf(LeadsMail:PagesVisited)-->
Available tags
LeadsMail:PagesVisited.PageName
Returns page name visited by the lead.
RAZOR
@GetString("LeadsMail:PagesVisited.PageName")
LeadsMail:PagesVisited.ViewPageLink
Returns link to view used by the lead on visited page.
RAZOR
@GetString("LeadsMail:PagesVisited.ViewPageLink")
LeadsMail:PagesVisited.WebSite
Returns web site name related to page visited.
RAZOR
@GetString("LeadsMail:PagesVisited.WebSite")