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,
A little razor help here please. I have a multi-node tree picker that points to the media section and the resulting selection stored as csv. I'm trying to get write some razor to get the media id's out from the property and display out. Any tips?
It is stored as this in the umbraco.config file:
<images><![CDATA[1084,1087,1088,1089]]></images>
Thanks,
Bij
Hi Bijesh,
How about:
@{ string csv = uQuery.GetCurrentNode().GetProperty<string>("images"); foreach (Media media in uQuery.GetMediaByCsv(csv)) { // do something } }
Awesome stuff :)
Thanks Hendy!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Multi-node tree picker and CSV
Hi,
A little razor help here please. I have a multi-node tree picker that points to the media section and the resulting selection stored as csv. I'm trying to get write some razor to get the media id's out from the property and display out. Any tips?
It is stored as this in the umbraco.config file:
Thanks,
Bij
Hi Bijesh,
How about:
Awesome stuff :)
Thanks Hendy!
is working on a reply...