Database Publishing multiple items in a slot

I have found multiple posts about database publishing but can’t figure out a way to iterate over more than one item in a slot. For instance this post works great but you have to get(0) the first item in the slot. I tried adding a loop but that just shows the final item in the slot. Is there a way to do this or is it custom code?

http://http://forum.percussion.com/showthread.php?t=371&highlight=database+publish+slot

Here is my sample code which returns the first item

$sys.asm.assemble($user.psoListTools.asList($mediumimage)).get(0)

Sharyn,

You need to use the PSOSlotTools.getSlotPropertyValues() method.

See this post: http://forum.percussion.com/showpost.php?p=5592&postcount=9

Dave