ochFoundation5 1.4.2 for Joomla 4.3+
Starting with version 1.4.2 ochFoundation5 uses the latest modularized PDFjs scripts. These scripts have a file extension of .mjs. If the pdf is not loading the the browser and in the browser console you see the following error: Loading module from
“[yourdomain]/plugins/system/ochfoundation5/vendor/pdfjs/build/pdf.mjs”
was blocked because of a disallowed MIME type (“text/octet-stream”).
Then you are likely running an old version of apache and need to add the following code to your .htaccess:<IfModule mod_mime.c>
AddType text/javascript .mjs
</IfModule>
More information can be found here: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Configuring_server_MIME_types
This version has experimental (!) support for adding PowerPoint presentations to your content using Google Docs viewer using the following tag.
{ presentation file="/path/to/presentation-file.pptx" class="" id="123" height="300px" width="600px" title="title for the embedded presentation" description="short description" clicktoload="true" frameborder="0" layout="" start="" end=""}
This version now has advanced ochElements Integration, read more on this new feature in the blog: [How To] Advanced ochElements Integration
Joomla! 4.4 PHP 8.1 PHP 8.2
Joomla! 5.1 Joomla! 5.2 PHP 8.1PHP 8.2 PHP 8.3
See: Documentation