Skip to content

Document Creator settings: connect Google and choose the Drive folders

Describes Document Creator 0.10.0.

Document Creator keeps every template and document as a Google Doc in Google Drive. Its settings page chooses which Google account it works with and which Drive folders it uses.

Where to find it

Open Settings in the admin sidebar and choose Document Creator, or go to /admin/settings/document-creator. The module must be enabled on the Modules page.

This page needs its own permission, Change Document Creator settings, on top of the Document Creator permission. Someone without it who opens the page is sent back to Document Creator with the message “You do not have permission to change Document Creator settings.” When the module was updated to the version that added this permission, every role that already had Document Creator access was given it once.

Until a Google account is connected, the Documents and Templates pages show Google Account Not Connected. The Go to Settings button there appears only for people who can open this page.

Document Creator settings: the Google Account card with no integration configured and a link to add one Document Creator settings: the Google Account card with no integration configured and a link to add one

Document Creator needs a Google account first.

Google Account

The Google Account card lists the Google connections set up for the site and lets you pick the one Document Creator uses. Picking one saves it straight away and shows Connection updated.

The connections themselves are not made here. The link under the card, Settings → Integrations, opens the site’s integrations page, where a Google account is added and authorized. When there is no Google connection yet, the picker links to the page for adding one.

Drive Folders

The Drive Folders card appears once the chosen account is connected. It has four rows:

  • Root folder: a folder that holds the other three. Leave its name empty to put them straight in the paths you choose.
  • Templates: where templates live. Default name: templates.
  • Documents: where documents live. Default name: documents.
  • Deleted: where deleted files are moved. Default name: deleted. Deleted templates and deleted documents go to separate subfolders inside it.

Each row has two parts:

  • The button on the left shows the folder’s location in Drive. Click it to open Select Folder, a small browser of your Google Drive that starts at My Drive. Click a folder to go into it, click a name in the trail at the top to go back up, and click Select Current Folder to use the folder you are in. No subfolders means the folder you are in has none.
  • The text box on the right is the folder’s name.

When a root folder is set, the Templates, Documents and Deleted folders are placed inside it.

Nothing is stored until you click Save Folder Settings. The page then says Folder settings saved. Folders that don’t exist yet are created in Drive when they are needed.

Moving existing folders into a new root

When you save a new root folder name, a yellow banner asks: Existing folders found at their current location. Move templates, documents, and deleted into “…”?

  • Move folders moves the current templates, documents and deleted folders into the root folder. On success the page says Folders moved to “…”. If some could not be moved, it names them after Migration failed for:.
  • Skip hides the banner and leaves the folders where they are.

Sharing the folder

Once a root folder name is set, a blue note reminds you: Remember to grant access. Document Creator does not share anything in Drive itself. Share the root folder in Google Drive with the people who need to open the documents.

What it doesn’t do

  • It doesn’t create or authorize Google connections. That happens under Settings → Integrations.
  • It doesn’t share Drive folders with anyone.
  • Picking a folder in the browser doesn’t save it. Only Save Folder Settings does.

For developers

The module declares Google as a required integration. The Google Cloud project behind the connection needs the Google Docs API and the Google Drive API enabled.