Adding DocSpace rooms and files to the Drupal page
Before you can add a DocSpace room or file to Drupal, you need to make changes to the table structure.
- Go to Structure -> Content types.
- Click the Manage fields button next to the needed element.
- On the opened page, click the Create a new field button.
- In the drop-down list, select ONLYOFFICE DocSpace and specify the name.
If you would like to change the size of the DocSpace element on the published page:
- Go to Structure -> Content types for the desired element.
- Click the Manage display button.
- In the previously created DocSpace field, click the gear icon and specify the desired sizes.
- Once ready, click the Save button.
When you are done with the preparatory steps:
- Go to the Content tab.
- Click the Add Content button.
- Select the content type to which you have added the ONLYOFFICE DocSpace element.
To add a room:
- Go to the Content tab.
- Click the Select room button.
- Select the available room from the list and press the Select button.
To add a file:
- Click the Select file button.
- Select the desired file from the room and press the Save button.
Access rights to rooms and files for Drupal users within created Drupal content are determined by the following principles:
- If the room should be available to all users, use a public room in DocSpace. It will be visible on the Drupal page for all users including anonymous, if Anonymous role has the "View published content" permission checked.
- If the room should be available only to logged in users, use a non-public room in DocSpace. A Drupal login will be required to view it, even if Anonymous role can view published content.
Please note the following specifics for DocSpace rooms created in Drupal:
- DocSpace left menu is not avaiable;
- Navigation is possible within the added room only;
- If users have the Room admin or Power user role, they can create new files.