All Collections
CMS Integrations
How to integrate Silktide with Drupal 7
How to integrate Silktide with Drupal 7
Julia Voortman avatar
Written by Julia Voortman
Updated over a week ago

Looking for installation guides for other Drupal versions?

This module enables two main features:

  • Easily switch from Silktide to the appropriate editor page inside Drupal to make quick content updates.

  • New or updated pages on your site will be automatically checked in Silktide when published, so that your scores are always up-to-date.

Installing/activating the module

You will need Drupal administrator access to install our Drupal module.

Downloading the module

Download the code as linked to above. After downloading the code, decompress the folder to view the contents. You should see the following files:

  • code-for-common.inc

  • README.md

  • silktide/

  • silktide.zip

Configuring the module

In your Silktide account:

  1. Open your website report

  2. Select Settings > Integrations

  3. If there are no existing integrations configured, select New CMS to create a new Drupal integration

  4. Copy the API key displayed:

In your Drupal admin:

  1. Open the Modules screen within your CMS

  2. Select the Install new module option

  3. Upload the silktide.zip file from the plugin code files you previously downloaded

Once installed:

  1. Select Configure next to the Silktide module on the Modules screen, or go to Configurations > Web Services > Silktide

  2. Insert your API key copied from Silktide

  3. Select Save configuration

Add code to common.inc file

The final step is to add the code from code-for-common.inc to your common.inc file in the root of your Drupal installation (some may have this in the folder labelled includes/.

This is where the meta tag is added to the page that lets Silktide know the editor URL for this page.

It is likely you already have a _drupal_default_html_head function inside the file labeled common.inc. Simply insert the contents of the function from our plugin, inside your function that already exists.

Retesting your site

You will need to retest your site in Silktide for these changes to take effect. Page updates or new page publications in Drupal should trigger a test for that page in Silktide.

Navigating from Silktide to Drupal

If everything has been configured correctly and once the report has finished running, you should find a CMS button when viewing a single page inside the Inspector, as well as beside your pages listed in the Inventory.

Selecting the CMS buttons will open the page editor in your CMS for the relevant page.

Did this answer your question?