Drupal Integration Documentation

This documentation covers the steps required to setup your Drupal site for integration with CMP. Please refer to the section that best describes your Drupal setup.

For Drupal 7

Screen_Shot_2017-11-28_at_11.37.08_AM.png

Navigate to Install new module from the nav, download this file and upload it.

 

Screen_Shot_2017-11-28_at_11.37.52_AM.png

Enable the module from the list of all available modules.

 

Setting Up Ingestion of Feed

There are multiple ways to achieve this, either fetching it programmatically within your theme, via a custom module or using the default Feeds Module. We will demonstrate using the Feeds Module due to its large use case and easy integration.

  1. Install the following modules and enable Feeds only, the rest should be automatically enabled.
  2. Navigate to Structure and select the option Feed Importers.

 

Screen_Shot_2017-11-28_at_11.39.16_AM.png

 

  1. Select Import importer and paste in the contents of this file in the textarea and click save (Other fields can be left blank).

 

Once it is set up, ingesting a feed is pretty straightforward.

 

Ingesting the Feed

NOTE - We would be using the JSON feed for your desired asset as found on exporting it.

Screen_Shot_2017-11-28_at_11.41.03_AM.png

Screen_Shot_2017-11-28_at_11.41.41_AM.png

 

Navigate to Add Content of type Article and scroll down to find the input field to enter the Feed URL. Paste in the JSON Feed URL and click Save. The articles should be automatically ingested and published as well.

 

For Drupal 8

Screen_Shot_2017-11-28_at_11.42.27_AM.png

 

Navigate to Install new module from the nav, download this file and upload it.

Screen_Shot_2017-11-28_at_11.43.18_AM.png

Enable the module from the list of all available modules.

 

Setting Up Ingestion of Feed

 

There are multiple ways to achieve this, either fetching it programmatically within your theme, via a custom module or using the default Feeds Module. We will demonstrate using the Feeds Module due to its large use case and easy integration.

 

  1. Install the following modules and enable Feeds only, the rest should be automatically enabled. - https://www.drupal.org/project/feeds
  2. Navigate to Structure and select the option Feed Importers.

Screen_Shot_2017-11-28_at_11.44.05_AM.png

3.Click on Add Feed Type
4.Fill in the fields as shown on below previews

Screen_Shot_2017-11-28_at_11.45.46_AM.png

Screen_Shot_2017-11-28_at_11.46.13_AM.png

5.Enter the mapping as shown on the below preview. Additional fields can be added based on how you want the content to appear on your website

 

Screen_Shot_2017-11-28_at_11.46.49_AM.png

6. Save all options.

Once it is set up, ingesting a feed is pretty straightforward.

 

Ingesting the Feed

 

NOTE - We would be using the ATOM feed for your desired asset as found on exporting it.

Screen_Shot_2017-11-28_at_11.48.04_AM.png

Screen_Shot_2017-11-28_at_11.48.37_AM.png

Navigate to Content, switch to Feeds tab and click on Add Feed. Add a Title of your choice and paste in the ATOM Feed URL and click Save and Import. The articles should be automatically ingested and published as well. 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk