Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there
I have the following code to display the content from a umbraco multinode content tree picker:
But this show the vorto code instead the title.
If I use @productid.GetVortoValue("title") it does not work (does not exist).
@items.GetVortoValue("title") does not work either.
Any suggestion? thanks
Hi Kleber,
Vorto doesn't work with DynamicNode so you might want to change that line to var items = Umbraco.TypedContent(productsid) and see if that helps.
var items = Umbraco.TypedContent(productsid)
Many thanks
Matt
Cool
Works like a charm.
Cheers
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Vorto with Multinode picker
Hi there
I have the following code to display the content from a umbraco multinode content tree picker:
var prod = Model.Content.GetPropertyValue("productPicker").ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).Take(8);
@foreach (var productsid in prod) {
var items = new DynamicNode(productsid);
<h5>@items.GetProperty("title")</h5>
}
But this show the vorto code instead the title.
If I use @productid.GetVortoValue("title") it does not work (does not exist).
@items.GetVortoValue("title") does not work either.
Any suggestion? thanks
Hi Kleber,
Vorto doesn't work with DynamicNode so you might want to change that line to
var items = Umbraco.TypedContent(productsid)
and see if that helps.Many thanks
Matt
Cool
Works like a charm.
Cheers
is working on a reply...