get thumbnail with link to file by item id


This is pretty basic (sorry). Having trouble creating a thumbnail link to the download file -- like in the show item page:


whats the easiest way to pass a single item id to this function?

example from this:

$item = get_record_by_id('Item', 119);

(need this for a simple pages page.

In the full signature for file_for_item, the $item is the last of three parameters.

So, this should do the trick:

echo files_for_item(array(), array('class'=>'item-file'), $item);

perfect!! thanks so much