ONLYOFFICE Collaboration Space and Drupal. The collaborative space module can embed rooms containing office files into your Drupal page, making it easy for your website users to access them.

 

 

Major function

 

Add rooms or individual files from the collaborative space to the Drupal page. In this way, your website visitors can directly view and interact with office documents on the webpage without downloading them.

Through the Drupal interface's collaborative space, documents, worksheets, slides, forms, and PDFs are stored and managed.

Collaborate with other users to edit and process Office files through the Drupal interface's collaborative space


 

 

 

install and configure

1. If you are not familiar with the ONLYOFFICE collaboration space, please create a free online account or deploy it locally.

2. Switch to "Extension" in Drupal management settings, and then click "Add New Module". Upload the Collaboration Space application archive, then click "Continue". When the uploaded Collaboration Space module appears, select it and click "Install".

3. Go to Configuration ->MEDIA ->ONLYOFFICE Collaboration Space Connector Settings, and fill in the address, administrator login name, and password for the collaboration space.

4. When you click "Save", a room administrator user will be created in the ONLYOFFICE collaboration space, with the same data as the current Drupal user. Public users (Drupal visitors) will also be added to the collaborative space with "view only" access.

5. In the ONLYOFFICE collaboration space, go to Settings ->Developer Tools ->JavaScript SDK. In the Embed Collaboration Space section, enter the Drupal address.



You can download Drupal's ONLYOFFICE Collaboration Space application from GitHub or Drupal project pages.

 

Export users

 

After installing and configuring the Collaboration Space module, you need to export users from Drupal. Click "Export Now" and a page will appear displaying the Drupal user list, including their personal information and email.

To add one or more users to a collaboration space, select these users in the list, select "Invite to Collaboration Space", and then click "Apply to Selected Items".



 

In the Collaboration Space User Status column of this table, you can track whether Drupal users have been added to the Collaboration Space:

Green check mark: Drupal users with email addresses have been added to the collaboration space. Sync successful.


Empty value: There are no Drupal users with email addresses in the collaboration space. You can invite them.

Hourglass: There is a user in the collaboration space with an email address, but there is a synchronization issue. When logging into the Collaboration Space plugin for the first time, users need to provide their Collaboration Space login name and password to complete synchronization.

Using ONLYOFFICE Collaboration Space in Drupal

 

After setting up the module, users with the "Manage ONLYOFFICE Collaboration Space Connector" permission can use the collaboration space. To adjust access permissions, go to Personnel ->Permissions ->ONLYOFFICE Collaboration Space Connector.


 

 

These users can access the ONLYOFFICE collaboration space, create collaborations, customize rooms, and public rooms, invite users, and collaborate on documents within the rooms.


 

 

Add rooms and files to Drupal page

 

We can add rooms or files from the collaboration space to the Drupal page, and before that, you need to make changes to the table structure. Go to Structure ->Content Type, and then click the Manage Fields button next to the desired element.


 

On the open page, click "Create New Field". In the drop-down list, select ONLYOFFICE Collaboration Space and enter the name.

If the page has been published and you want to change the size of the collaboration space elements inside, go to the desired element structure ->content type, and then click "Manage Display". In the previously created collaboration space field, click the gear icon and set the desired size. Then click "Save".

After completing the preparation steps, go to the "Content" tab, click "Add Content", and then select the content type for which the ONLYOFFICE collaboration space element has been added.

To add a room, click "Select Room", select an available room from the list, and then press "Select".

To add a file, click "Select File", select the desired file from the room, and then press "Save".


 

 

 

When publishing content, all rooms and files will be shared with public users (Drupal visitors) to prevent activating the "View Published Content" setting.

The access permissions for collaboration space rooms and files on the Drupal page that have been published depend on the collaboration space account:

If the user has a collaboration space account: use the access permissions set for the user. For example, if a user is invited to a room in advance, they will see a Drupal page containing published rooms for editing.
If the user does not have a collaborative space account: If anonymous users can view content, use Drupal visitor accounts to view rooms/files.


Regarding the collaboration space rooms posted on the Drupal page, please pay attention to the following details:

The menu on the left side of the collaboration space is not available
Navigation can only be performed within the added rooms
If the user is a "room administrator" or "advanced user", a new file can be created