c# - Multiple Folders in Multiple Media Picker Umbraco 7 -


i'm trying add multiple folders in multiple media picker when i'm looping through i'm getting single id.

enter image description here

this code i'm using loop through content:

 var tablist = model.content.getpropertyvalue<string>("containertab").split(new string[] { "," }, stringsplitoptions.removeemptyentries).select(int.parse); 

is allowed add multiple folders in multiple media picker? how can id of each folder?

it allowed, try display raw field check have multiple id's somethings 1135,1136

@{ <p>@currentpage.containertab</p> } 

simple code example:

@if (!string.isnullorempty(currentpage.containertab)) {     foreach (var x in currentpage.containertab.tostring().split(','))     {         var media = umbraco.media(int.parse(x));      } } 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -