<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Forums Topic: How to add link to download original</title>
<link>http://omeka.org/forums/</link>
<description>Forums Topic: How to add link to download original</description>
<language>en</language>
<pubDate>Sat, 10 Jan 2009 00:15:56 +0000</pubDate>

<item>
<title>DaveLester on "How to add link to download original"</title>
<link>http://omeka.org/forums/topic/how-to-add-link-to-download-original#post-90</link>
<pubDate>Sat, 05 Jan 2008 18:09:28 +0000</pubDate>
<dc:creator>DaveLester</dc:creator>
<guid isPermaLink="false">90@http://omeka.org/forums/</guid>
<description>&#60;p&#62;You've probably seen this called on the admin side on the items show page:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo display_files($item-&#38;gt;Files); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That displays the file and the download link.  It looks like this is what you want.  Take a look at display_files() in the application/helpers/Functions.php file to see how it works if you are looking to build something of your own.  $files can be an array, so you just have to handle that properly, and you could echo something as follows:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;echo &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;. file_download_uri($file). &#38;#39;&#38;quot; class=&#38;quot;download-file&#38;quot;&#38;gt;&#38;#39;. $file-&#38;gt;original_filename. &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>niceoutfit on "How to add link to download original"</title>
<link>http://omeka.org/forums/topic/how-to-add-link-to-download-original#post-85</link>
<pubDate>Thu, 03 Jan 2008 13:27:22 +0000</pubDate>
<dc:creator>niceoutfit</dc:creator>
<guid isPermaLink="false">85@http://omeka.org/forums/</guid>
<description>&#60;p&#62;I would like to provide a download link the original source file that was uploaded. Could you provide the code needed to do so.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
