If you are migrating a blog from Drupal to HubSpot, so you are in the right place...
Before migration, let's first know its background...
There is no doubt that over 86,000+ companies in more than 120 countries prefer to use HubSpot tools to grow their business and increase the number of leads. But, some say that it is not for everyone because some people are unaware of the device and some are still surprised to learn- is this the right solution for them?
HubSpot- All in One Business Automation is the best tool to date as it provides free CRM services, but it is also true that with the increase in the number of contacts, organizations will have to spend a few bucks out of their own pocket.
It is easy to migrate blogs from HubSpot to any other CRM and from other CRM to HubSpot but we had a lot of problems to bring blog from Drupal to HubSpot. And there is no specific way to migrate the blogs from Drupal to HubSpot.
I know you might be thinking that using traditional approaches (COPY and PASTE), one can easily transfer blogs directly from Drupal to HubSpot. There is no doubt that it is easy, but chances are you may lose data and have to spend time transferring each blog individually as there are 350+ blogs here.
Now, you might be thinking about the right way to move a blog from Drupal to HubSpot. Scrolling down and reading this article will guide you with the proper steps, considering which you can move Drupal Blogs to HubSpot.
Before moving Drupal to HubSpot migration, have you ever thought about what you need? let's take a look. If not, then see below.
What do we need to migrate?
Below are some fields that we had to migrate from Drupal to HubSpot.
- Blog Title
- Featured image of respective blog you want to migrate
- Blog Content (data, images, links, CTA, embed assets)
- Meta Description
- Publish time and date
Now, without taking a minute, let's dive into the following steps allowing you to transfer your blog posts directly from Drupal to HubSpot.
Blog Migration Steps From Drupal to HubSpot
Let’s get started….
Step 1: Export data from Drupal
The biggest challenge was to convert the XML file generated by views data export to the Wordpress XML format supported by Hubspot.
Here are the fields that we need to migrate from Drupal to Hubspot:
- Featured image
- Teaser (excerpt)
- Published date
Step 2: Wordpress XML
The next step would be to create the WordpressXML from the XML generated from Drupal. We have used a simple Python script to do the conversion. The BeautifulSoup library can be used to parse the XML and do the conversion.
In its simplest form, the wordpress XML looks like
You need to fill the placeholders with actual value from the xml generated from Drupal. You can see an example here, which uses the rss feed xml as input. We are not using rss xml as it has some limitations on featured image, categories etc..
Step 3: Importing the WordpressXML to HubSpot
After you've exported your WordPress posts, sign in to your HubSpot account.
- In your HubSpot account, click the settings icon settings in the main navigation bar.
- In the sidebar menu, navigate to CMS > Blog.
- In the upper right, click Import blog.
- In the blog import dashboard, click Import new blog.
- Select Import XML file to upload your XML file of WordPress posts.
To summarise everything, to do a Drupal to Hubspot migration, the steps involved:
- Export data from Drupal
- Convert it to WordpressXML
- Import XML to Hubspot
Hope you can do this migration with the help of this article. You can contact us here for more information.
And If you would like to know more about the HubSpot related migration, please look up the links below.