Hi,
This is pretty basic (sorry). Having trouble creating a thumbnail link to the download file -- like in the show item page:
files_for_item()
whats the easiest way to pass a single item id to this function?
Hi,
This is pretty basic (sorry). Having trouble creating a thumbnail link to the download file -- like in the show item page:
files_for_item()
whats the easiest way to pass a single item id to this function?
example from this:
<?php
$item = get_record_by_id('Item', 119);
files_for_item($item);
?>
(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