Hi,
I have an Omeka Classic with PDFs and metadata. At this point I need to close the access to PDFs and make public only the metadata. Is it possible?
Someone please answer
Omeka isn’t really designed to have the files private. You can see some discussion from an earlier thread about an option involving modifying a plugin.
If you want to remove access completely you can do it with Apache (like, using an .htaccess file in files/original with a Deny from All
or Require all denied
).
Are you interested in hiding the files only from general public, or also to registered users of the repository?
In the first case, I guess you could alter the code of all the public pages showing the files (like items/show, for instance), removing the part that actually gets the file displayed.
Problem solved! Thanks everyone.
Can you explain how did you solved it?
Hi Miguel!
themes/default/items/show.php
<!-- The following returns all of the files associated with an item. -->
<?php if (metadata(‘item’, ‘has files’) && (get_theme_option(‘Item FileGallery’) == 1) && (current_user())): ?>
Let me know if you have questions.
This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.