Hello,
I was told that if you want formatted text you can either write an html or plain text document as a media item and display it on the item page. Currently it displays as a generic thumb nail and the file title as a link. When I Inspected the page it shows its being displayed as an anchor tag. Is there a way to get it to display the text file on the page?
Hi @ghmtech , I’ve never heard of Omeka displaying HTML files in the page like you suggest. I believe it will extract the text to make it searchable.
You could put the HTML in a field and display it inline. Another option might be to create a module or just edit your theme to load HTML files in an iFrame.
I appreciate your response @fackrellj. It is entirely possible the information I received was incorrect. Thank you for your suggestions!
You can use the “HTML attachment” media type to add formatted text. If you want to display it on the item view page, you need to configure the resource blocks to include “Media embed” rather than, say, the Lightbox gallery, which will not render HTML contents on the page.
You can configure resource pages under the “Theme” setting on each site:
https://omeka.org/s/docs/user-manual/sites/site_theme/#configure-resource-pages
You cannot HTML-format metadata entries in S (only in Classic).
Thanks, @AllanaMayer, for the clarification.
@ghmtech, just to follow up with what @AllanaMayer added and what I said previously, which wasn’t very clear - you can’t just add HTML to a metadata field on the item. You would want to select the HTML media type and add the HTML there. You can then use the Media embed block to render the HTML rather than display the HTML markup.
Thank you for the help @AllanaMayer. I have one more question. Lets say I want the photos in the Lightbox gallery and want the hmtl file to be embedded media. Currently all my media is being embedded. Is there a way to separate theses?