guilty / hubspot-connector
Expose Hubspot API features in Twig and pull in content from your HubSpot Portal.
Installs: 4 940
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 3
Open Issues: 5
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-RC1
- ryanwinchester/hubspot-php: ~1.0
This package is auto-updated.
Last update: 2024-11-28 17:08:54 UTC
README
Expose Hubspot API features in Twig and pull in content from your HubSpot Portal.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require guilty/hubspot-connector
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for HubSpot Connector.
Configuring HubSpot Connector
- Go the the admin panel
- Go to the settings page
- Click on "HubSpot Connector" under the "Plugins" section
- Enter your Hubspot API key and click Save.
- Done
Using HubSpot Connector
Here is a basic example, for more comprehensive examples and documentation check the wiki
{% for blog in craft.hubspot.blogs %} <a href="{{ blog.root_url }}"> <h4>{{ blog.id }} - {{ blog.name }}</h4> </a> {% for post in craft.hubspot.blogPosts(blog.id) %} <hr> <article> <h5> <a href="{{ post.published_url }}"> {{ post.html_title }} </a> </h5> {{ post.post_summary | striptags }} </article> {% endfor %} {% endfor %}
Brought to you by Guilty AS
The HubSpot logo and Trademark is the property of Hubspot Inc