U4-4059 Update MNTP snippets for string of id's rather than old xml fragment

This commit is contained in:
Sebastiaan Janssen
2014-01-16 19:49:57 +01:00
parent bfc89a7247
commit c2ee3303a5
3 changed files with 6 additions and 6 deletions

View File

@@ -10,10 +10,10 @@
@* Lists each selected value from the picker as a link *@
<ul>
@foreach(var id in CurrentPage.PropertyWithPicker){
@foreach(var id in CurrentPage.PropertyWithPicker.Split(',')){
@*For each link, get the node, and display its name and url*@
var content = Umbraco.Content(id.InnerText);
var content = Umbraco.Content(id);
<li><a href="@content.Url">@content.Name</a></li>
}

View File

@@ -10,10 +10,10 @@
@* Lists each selected value from the picker as a link *@
<ul>
@foreach(var id in CurrentPage.PropertyWithPicker){
@foreach(var id in CurrentPage.PropertyWithPicker.Split(',')){
@*For each link, get the node, and display its name and url*@
var content = Umbraco.Content(id.InnerText);
var content = Umbraco.Content(id);
<li><a href="@content.Url">@content.Name</a></li>
}

View File

@@ -15,10 +15,10 @@
@* Lists each selected value from the picker as a link *@
<ul>
@foreach(var id in selection){
@foreach(var id in selection.Split(',')){
@*For each link, get the node, and display its name and url*@
var node = Library.NodeById(id.InnerText);
var node = Library.NodeById(id);
<li><a href="@node.Url">@node.Name</a></li>
}