I'm having a macro/API/play afternoon with Umbraco, can someone point me to some examples of using the API to loop through media items and displaying on a page?
Don't forget about the performance hit when using GetMedia(), it hits the db for every GetMedia() call, so be aware of this when having to loop through lots of media items
Examples Of Looping Through Media Folder
I'm having a macro/API/play afternoon with Umbraco, can someone point me to some examples of using the API to loop through media items and displaying on a page?
Try here http://forum.umbraco.org/yaf_postst9460_Iterate-media-nodes-with-Api.aspx
Don't forget about the performance hit when using GetMedia(), it hits the db for every GetMedia() call, so be aware of this when having to loop through lots of media items
Cheers,
/Dirk
is working on a reply...