Originally published at: https://www.onlyoffice.com/blog/2022/06/onlyoffice-connector-for-drupal/
The first version of our free ready-to-use integration app for Drupal is now available. It allows inserting office files in posts as well as editing and collaborating on documents in the Media module. Learn all the details below.
Drupal is a free and open-source web content management system (CMS) written in PHP. It provides a back-end framework for at least 14% of the top 10,000 websites worldwide and 1.2% of the top 10 million websites – ranging from personal blogs to corporate, political, and government sites. Systems also use Drupal for knowledge management and business collaboration.
Although Drupal offers a sophisticated API for developers, basic website installation and administration of the framework require no programming skills. Drupal runs on any computing platform that supports both a web server capable of running PHP and a database to store content and configuration.
ONLYOFFICE connector and its features
With the ONLYOFFICE connector (module), you are able to add office files to posts for viewing and collaborate on documents uploaded to Drupal.
Add documents to posts
When creating a post, you can add the new ONLYOFFICE element. Follow detailed instructions
This way you can insert office files of various formats in the embedded mode and your site visitors are able to view docs without downloading them.
Edit office files
In case you need to edit the document embedded in your post or even do it together with other authors, you are able to open DOCX, XLSX, and PPTX files uploaded to the Media module for editing – just select the Edit in ONLYOFFICE action in the operations menu.
Users with the Administrator rights are able to collaborate on documents, all changes will be saved in the same file.
Install ONLYOFFICE Docs
To be able to work with office documents in Drupal, you need to deploy a running instance of ONLYOFFICE Docs (Document Server).
Please note: mobile web editors are available in the enterprise version of the suite only.
Install and configure the connector
Please note: this is the first version of the connector. Further developments and enhancements will take place.
To install the ONLYOFFICE module, follow the steps specified here. To configure it, open the
~/config/system/onlyoffice-settings page in Drupal, switch to the administrative settings of ONLYOFFICE connector, and specify the following parameters:
- The URL of the installed ONLYOFFICE Docs.
- Secret key to enable JWT that protects your documents from unauthorized access. You also need to specify the same secret key in the ONLYOFFICE Docs config file to enable the validation (further info can be found here).