Skip to content

Repository files navigation

ONLYOFFICE add-on for Volto

Welcome to the ONLYOFFICE add-on for Volto! This integration allows you to seamlessly edit, create, and convert files within your Volto environment using ONLYOFFICE Docs.

Volto is a modern interface for Plone. Learn more about Volto here. You can also check the official ONLYOFFICE add-on for Plone.

Add-on installation 📥

Option 1: Generating a new add-on

Step 1: Add dependencies

Before generating a new add-on, ensure the following dependencies are installed:

  • uv
  • nvm
  • Node.js
  • Make

Step 2: Generate a new Volto project

Run the following command:

uvx cookieplone

During the setup process, follow these steps:

  • Add-on Title (Volto Add-on): Enter @onlyoffice/volto.
  • For the remaining steps, use the default options.

Step 3: Replace the generated add-on with the existing one

  • Navigate to the home\volto\packages directory.
  • Delete the volto directory inside the packages folder.
  • Replace it with the existing add-on from this repository.

Step 4: Install and start the add-on

In the home\volto directory, run the following commands one by one:

make install
make start

Option 2: Adding an add-on to an existing project

Step 1: Install Volto

Step 2: Enable the add-on

Unzip the ONLYOFFICE add-on into the packages directory of your Volto project. The add-on should be placed in the volto folder.

Update the volto.config.js file in the root directory of your project:

module.exports = {
  addons: ['@onlyoffice/volto'],
};

Update the package.json file in the root directory of your project:

"dependencies": {
  "@onlyoffice/volto": "workspace:*"
},

Step 3: Install and start the add-on

Run the following commands in the root directory of your Volto project:

make install
make start

Add-on configuration ⚙️

To configure the ONLYOFFICE add-on, follow these steps:

  • Navigate to the Volto administration section: click the profile icon in the lower-left corner.
  • Go to Site Setup -> Add-on Configuration -> ONLYOFFICE Configuration.

Here, you can set up and manage ONLYOFFICE Docs settings, including:

  • Document Editing service (URL of your ONLYOFFICE Docs)
  • Secret key (JWT Secret)

You can also connect to the public test server of ONLYOFFICE Docs for one month by checking the corresponding box.

Editing files 📝

  • Go to the Contents section and locate the file you want to edit.
  • Click on the file to open its page.
  • In the left menu, click the ONLYOFFICE icon.
  • The file will open in the same tab, ready for editing.

Creating new files 📄

  • Navigate to the Contents section.
  • Click the ONLYOFFICE icon in the left panel.
  • Select the desired file format: Document, Spreadsheet, Presentation, or PDF form.
  • The new file will open immediately in the same tab for editing.

File conversion 🔄

  • Open the file page.
  • Click the arrow icon to access the conversion options.
  • In the pop-up window, select the desired file format.
  • Click the arrow button in the lower-right corner to start the conversion.
  • The converted file will be downloaded to your device in the selected format.

Installing ONLYOFFICE Docs

To be able to work with office files within Volto/Plone, you will need an instance of ONLYOFFICE Docs. You can install the self-hosted version of the editors or opt for ONLYOFFICE Docs Cloud which doesn't require downloading and installation.

Self-hosted editors

You can install free Community version of ONLYOFFICE Docs or scalable Enterprise Edition.

To install free Community version, use Docker (recommended) or follow these instructions for Debian, Ubuntu, or derivatives.

To install Enterprise Edition, follow the instructions here.

ONLYOFFICE Docs Cloud

To get ONLYOFFICE Docs Cloud, get started here.

Feedback & Support 💡

  • 🐞 Found a bug? Please report it by creating an issue.
  • ❓ Have a question or feedback? Ask our community and developers on the ONLYOFFICE Forum.
  • 👨‍💻 Need help for developers? Check our API documentation.

About

Plugin for integrating ONLYOFFICE online editors with Volto

Topics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages