U4-4059 Update MNTP snippets for string of id's rather than old xml fragment
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user