Display only PDF files

How could I display only PDF files? Thanks.

Can you explain a little more about what you are trying to do that is different from the current display capabilities of Omeka?

Are you uploading multiple types of files and you only want PDFs to appear publicly? Or are you interested in a document reader that will help you display the text of the PDF's publicly? There is a docs viewer plugin, if you are interested in that type of display. You can find more information here: http://omeka.org/add-ons/plugins/docs-viewer/

HI Sheila,

I am uploading multiple types of files but I only want PDFs to appear publicily.
Thank you, Sheila.

If you only want pdf files to show on the public page. In the items/show.php page, replace display_files_for_item(); with the following code.

	foreach (__v()->item->Files as $file) {
    $extension = pathinfo($file->archive_filename, PATHINFO_EXTENSION);
    if ($extension=='pdf'){
        	echo display_file($file);

This gets the file extension and only displays files with the pdf extension.

Thank you very much, Aodiorne! It works perfectly!