HubL Supported Tags
This page is a comprehensive reference guide of the syntax and the available parameters for all HubL tags. Each tag type below contains a sample of the basic syntax, as well as an example with parameters and code output.
Most of the tags in this page have default module equivalents. Modules can be used within dnd_area and flexible columns, making them more powerful and user friendly than the tags you see here.
A blog comments tag renders the comments embed code on a blog template. This Javascript embed code loads the comments form and comments, based upon your configuration in Content Settings.
Blog Comment Form module:
{% blog_comments "blog_comments" overrideable=False, label='Blog Comments' %}
Blog Comment Count module:
{% blog_comments "blog_comments" %}
Blog Comment listing for specific blog:
{% blog_comments "default_blog_comments" select_blog='359485112' %}
Blog Commment Form Output:
<span id="hs_cos_wrapper_blog_comments" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_blog_comments"
style="" data-hs-cos-general-type="widget" data-hs-cos-type="blog_comments">
<div class="section post-footer">
<div id="comments-listing" class="new-comments no-comments"></div>
<div id="hs-comment-embed" style="display:none;"></div>
<div id="comment-form" class="new-comments">
<form novalidate="" accept-charset="UTF-8"
action="https://api.hubapi.com/comments/v3/comment?portalId=311600" enctype="multipart/form-data"
id="hsForm_d30edada-82e4-4a69-aaf4-a9d0376f37e6" method="POST" class="hs-form stacked"
data-form-id="d30edada-82e4-4a69-aaf4-a9d0376f37e6" data-portal-id="311600"
data-reactid=".hbspt-forms-0">
<div data-reactid=".hbspt-forms-0.0:$0">
<div class="hs_email field hs-form-field" data-reactid=".hbspt-forms-0.0:$0.$email">
<label class="" placeholder="Enter your Email" for="email-d30edada-82e4-4a69-aaf4-a9d0376f37e6"
data-reactid=".hbspt-forms-0.0:$0.$email.0">
<span data-reactid=".hbspt-forms-0.0:$0.$email.0.0">Email</span><span
class="hs-form-required" data-reactid=".hbspt-forms-0.0:$0.$email.0.1">*</span>
</label>
<legend class="hs-field-desc" style="display:none;" data-reactid=".hbspt-forms-0.0:$0.$email.1">
</legend>
<div class="input" data-reactid=".hbspt-forms-0.0:$0.$email.$email">
<input id="email-d30edada-82e4-4a69-aaf4-a9d0376f37e6" class="hs-input" type="email"
name="email" required="" placeholder="" value=""
data-reactid=".hbspt-forms-0.0:$0.$email.$email.0">
</div>
</div>
</div>
<div data-reactid=".hbspt-forms-0.0:$1">
<div class="hs_website field hs-form-field" data-reactid=".hbspt-forms-0.0:$1.$website">
<label class="" placeholder="Enter your Website"
for="website-d30edada-82e4-4a69-aaf4-a9d0376f37e6"
data-reactid=".hbspt-forms-0.0:$1.$website.0">
<span data-reactid=".hbspt-forms-0.0:$1.$website.0.0">Website</span>
</label>
<legend class="hs-field-desc" style="display:none;"
data-reactid=".hbspt-forms-0.0:$1.$website.1"></legend>
<div class="input" data-reactid=".hbspt-forms-0.0:$1.$website.$website">
<input id="website-d30edada-82e4-4a69-aaf4-a9d0376f37e6" class="hs-input" type="text"
name="website" value="" placeholder=""
data-reactid=".hbspt-forms-0.0:$1.$website.$website.0">
</div>
</div>
</div>
<div data-reactid=".hbspt-forms-0.0:$2">
<div class="hs_comment field hs-form-field" data-reactid=".hbspt-forms-0.0:$2.$comment">
<label class="" placeholder="Enter your Comment"
for="comment-d30edada-82e4-4a69-aaf4-a9d0376f37e6"
data-reactid=".hbspt-forms-0.0:$2.$comment.0">
<span data-reactid=".hbspt-forms-0.0:$2.$comment.0.0">Comment</span>
<span class="hs-form-required" data-reactid=".hbspt-forms-0.0:$2.$comment.0.1">*</span>
</label>
<legend class="hs-field-desc" style="display:none;"
data-reactid=".hbspt-forms-0.0:$2.$comment.1"></legend>
<div class="input" data-reactid=".hbspt-forms-0.0:$2.$comment.$comment">
<textarea id="comment-d30edada-82e4-4a69-aaf4-a9d0376f37e6" class="hs-input" name="comment"
required="" placeholder=""
data-reactid=".hbspt-forms-0.0:$2.$comment.$comment.0"></textarea>
</div>
</div>
</div>
<div data-reactid=".hbspt-forms-0.0:$3">
<div class="hs_subscribe field hs-form-field" data-reactid=".hbspt-forms-0.0:$3.$subscribe">
<label class="" placeholder="Enter your Subscribe to follow-up comments for this post"
for="subscribe-d30edada-82e4-4a69-aaf4-a9d0376f37e6"
data-reactid=".hbspt-forms-0.0:$3.$subscribe.0">
<span data-reactid=".hbspt-forms-0.0:$3.$subscribe.0.0"></span>
</label>
<legend class="hs-field-desc" style="display:none;"
data-reactid=".hbspt-forms-0.0:$3.$subscribe.1"></legend>
<div class="input" data-reactid=".hbspt-forms-0.0:$3.$subscribe.$subscribe">
<ul class="inputs-list" data-reactid=".hbspt-forms-0.0:$3.$subscribe.$subscribe.0">
<li class="hs-form-booleancheckbox"
data-reactid=".hbspt-forms-0.0:$3.$subscribe.$subscribe.0.0">
<label for="subscribe-d30edada-82e4-4a69-aaf4-a9d0376f37e6"
class="hs-form-booleancheckbox-display"
data-reactid=".hbspt-forms-0.0:$3.$subscribe.$subscribe.0.0.0">
<input id="subscribe-d30edada-82e4-4a69-aaf4-a9d0376f37e6" class="hs-input"
type="checkbox" name="subscribe" value="true"
data-reactid=".hbspt-forms-0.0:$3.$subscribe.$subscribe.0.0.0.0">
<span data-reactid=".hbspt-forms-0.0:$3.$subscribe.$subscribe.0.0.0.1">Subscribe
to follow-up comments for this post</span>
</label>
</li>
</ul>
</div>
</div>
</div>
<div data-reactid=".hbspt-forms-0.0:$4">
<div class="hs_lifecyclestage field hs-form-field" style="display:none;"
data-reactid=".hbspt-forms-0.0:$4.$lifecyclestage">
<label class="" placeholder="Enter your Lifecycle Stage"
for="lifecyclestage-d30edada-82e4-4a69-aaf4-a9d0376f37e6"
data-reactid=".hbspt-forms-0.0:$4.$lifecyclestage.0">
<span data-reactid=".hbspt-forms-0.0:$4.$lifecyclestage.0.0">Lifecycle Stage</span>
</label>
<legend class="hs-field-desc" style="display:none;"
data-reactid=".hbspt-forms-0.0:$4.$lifecyclestage.1"></legend>
<div class="input" data-reactid=".hbspt-forms-0.0:$4.$lifecyclestage.$lifecyclestage">
<input name="lifecyclestage" class="hs-input" type="hidden" value="subscriber"
data-reactid=".hbspt-forms-0.0:$4.$lifecyclestage.$lifecyclestage.0">
</div>
</div>
</div>
<div class="hs_submit" data-reactid=".hbspt-forms-0.2">
<div class="hs-field-desc" style="display:none;" data-reactid=".hbspt-forms-0.2.0"></div>
<div class="actions" data-reactid=".hbspt-forms-0.2.1">
<input type="submit" value="Submit Comment" class="hs-button primary"
data-reactid=".hbspt-forms-0.2.1.0">
</div>
</div>
<input name="hs_context" type="hidden"
value="{"rumScriptExecuteTime":1396.815,"rumServiceResponseTime":7737.500000000001,"rumFormRenderTime":187.17999999999938,"rumTotalRenderTime":7738.14,"rumTotalRequestTime":183.2549999999992,"pageUrl":"http://311600.hs-sites.com/-temporary-slug-5eccb1d9-1f1b-4bbd-8e19-00e198331b15?hs_preview=ALicr-ma-4312320350","pageTitle":"HubSpot Sales Professional User Guide: HubSpot Sales Professional Overview","source":"FormsNext-static-1.390","isHostedOnHubspot":true,"timestamp":1479135449193,"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36","referrer":"","hutk":"a525e671c25f6b108d25e08c892e359e","originalEmbedContext":{"portalId":"311600","formId":"d30edada-82e4-4a69-aaf4-a9d0376f37e6","target":"#comment-form","redirectUrl":"http://www.hubspot.com/contact-sales/thanks/","pageId":"23423","pageName":"My great landing page","css":".your-custom-css {background-color: #fe7722}","requiredCss":".my-custom-error-msgs {border-radius: 3px;}","submitButtonClass":"hs-button primary"},"recentFieldsCookie":{},"pageId":"23423","pageName":"My great landing page","boolCheckBoxFields":"subscribe","dateFields":"","redirectUrl":"http://www.hubspot.com/contact-sales/thanks/","smartFields":{},"urlParams":{"hs_preview":"ALicr-ma-4312320350"},"formValidity":{},"correlationId":"55d71532-ab6b-4415-98f5-f3a16d7741c9","disableCookieSubmission":false}"
data-reactid=".hbspt-forms-0.3">
<input type="hidden" id="id_portalId" name="portalId" value="311600"><input type="hidden"
id="id_contentId" name="contentId" value="4312320350">
<input type="hidden" id="id_collectionId" name="collectionId" value="2224463151">
<input type="hidden" id="id_contentAuthorEmail" name="contentAuthorEmail"
value="cstone@hubspot.com"><input type="hidden" id="id_contentAuthorName" name="contentAuthorName"
value="Christopher Stone">
<input type="hidden" id="id_comment_verification_text" name="comment_verification_text"
value="Your comment has been received.">
<input type="hidden" id="id_contentTitle" name="contentTitle"
value="HubSpot Sales Professional User Guide: HubSpot Sales Professional Overview">
<input type="hidden" id="id_contentPermalink" name="contentPermalink"
value="http://311600.hs-sites.com/-temporary-slug-5eccb1d9-1f1b-4bbd-8e19-00e198331b15">
<input type="hidden" id="id_contentCreatedAt" name="contentCreatedAt" value="1479135208000">
<input type="hidden" id="id_formGuid" name="formGuid" value="d30edada-82e4-4a69-aaf4-a9d0376f37e6">
</form>
</div>
</div>
</span>
Blog Comment Listing Module Output:
(function ($) {
var commentsEmbedContext = {
portalId: 327485,
collectionId: 359485112,
contentId: 2684120609,
target: '#comments-listing.new-comments',
showComments: true,
showForm: true,
commentVerificationText: "Your comment has been received.",
embedScriptEnv: "prod",
apiEnv: "prod",
contentTitle: "Post title",
contentCreatedAt: "1427849160000",
contentPermalink: "http:\/\/designers.hubspot.com\/blog\/post-name,
contentAuthorEmail: "dhunt@hubspot.com",
contentAuthorName: "David Hunt",
captchaRequired: true,
captchaKey: "6Lc3uMsSAAAAAMjk4NIvPQK9_-ZLk2wBokFCo5Qt",
maxThreadDepth: 3,
formId: "8d42bb92-241b-4894-b853-1d5f6553daa0"
};
function loadComments() {
if (window.hubspot && typeof window.hubspot.loadCommentsEmbed === 'function') {
hubspot.loadCommentsEmbed(commentsEmbedContext.embedScriptEnv, function () {
if (typeof window.hsEmbedComments === 'function') {
window.hsEmbedComments(commentsEmbedContext);
}
});
} else {
setTimeout(loadComments, 50);
}
}
loadComments();
})(window.hsjQuery || jQuery);
Parameter | Type | Description | Default |
---|---|---|---|
limit
| Integer | Sets maximum number of comments. |
5000
|
select_blog
| 'default' or blog ID | Specifies which blog is connected to the comments embed. This parameter accepts arguments of either 'default' or a blog ID (available in the URL of the Blog dashboard). If want to use your default blog, this parameter is unnecessary. |
default
|
skip_css
| Boolean | Setting this option to True will stop the blog comments CSS from loading. |
false
|
While drag and drop layouts include a blog content module, these modules are not created with a single tag. They instead use conditional logic to define how a blog post and a blog listing should render. You can learn more about coding blog templates here.
Adds a listing of blog posts based off of a set of parameters shared by posts across blogs. Posts are selected based off of their relevance to the set parameters. For an example usage of the optional callback
parameter, see creating a related blog post listing with the blog related posts HubL tag.
Please note this tag does not generate a page/post level editable module, it is entirely configured with HubL.
{% related_blog_posts %}
{% related_blog_posts limit=2, blog_ids="1,2", tags="Sales enablement,Marketing", blog_authors="John Smith,Frank Smith", path_prefixes="/business-blog", start_date="2018-04-10", end_date="2018-04-10", blog_post_override="2783035366" %}
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_related_blog_posts" data-hs-cos-general-type="widget" data-hs-cos-type="related_blog_posts" id="hs_cos_wrapper_" style=""><!--related-blog-entries--></span>
<div class="hs-related-blog-module feedreader_box">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_related_blog_posts" data-hs-cos-general-type="widget" data-hs-cos-type="related_blog_posts" id="hs_cos_wrapper_" style=""></span>
<div class="hs-related-blog-item">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_related_blog_posts" data-hs-cos-general-type="widget" data-hs-cos-type="related_blog_posts" id="hs_cos_wrapper_" style=""></span>
<div class="hs-related-blog-item-text">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_related_blog_posts" data-hs-cos-general-type="widget" data-hs-cos-type="related_blog_posts" id="hs_cos_wrapper_" style=""><a class="hs-related-blog-title" href="//www.underseaband.com/business-blog/marketing-is-fun"><span>Marketing is fun</span></a></span>
<div class="hs-related-blog-byline">by <span class="hs-related-blog-author">John Smith</span> <span class="hs-related-blog-posted-at">posted on</span> <span class="hs-related-blog-date">June 3, 2018</span>
</div>
<div class="hs-related-blog-byline">
<p class="hs-related-blog-description">Learn how to make marketing fun!<a href="//www.underseaband.com/business-blog/marketing-is-fun">Read more</a></p>
</div>
<div class="hs-related-blog-byline">
<span class="hs-related-blog-tags">Tags: Marketing</span>
</div>
</div>
</div>
<div class="hs-related-blog-item hs-with-featured-image">
<div class="hs-related-blog-item-text">
<a class="hs-related-blog-title" href="//www.underseaband.com/business-blog/sales-is-fun"><span>Sales is fun</span></a>
<div class="hs-related-blog-byline">by <span class="hs-related-blog-author">Frank Smith</span> <span class="hs-related-blog-posted-at">posted on</span> <span class="hs-related-blog-date">June 7, 2018</span>
</div>
<div class="hs-related-blog-byline">
<p class="hs-related-blog-description">Learn how to make sales fun!<a href="//www.underseaband.com/business-blog/sales-is-fun">Read more</a></p>
</div>
<div class="hs-related-blog-byline">
<span class="hs-related-blog-tags">Tags: Sales enablement</span>
</div>
</div>
<div class="hs-related-blog-item-image-wrapper"><img alt="" class="hs-related-blog-featured-image" src="//www.underseaband.com/hubfs/business-blog/sales-is-fun.jpg"></div>
</div>
</div>
Parameter | Type | Description | Default |
---|---|---|---|
blog_ids
| Integer | The ID(s) of blog(s) to include posts from. Omit this parameter to use the default blog. | |
blog_post_ids
| String | The ID(s) of a blog posts to use when finding relevant blog posts to list (comma separated). This parameter should only be used when the widget is appearing on pages, as on blog posts, it will default to the post the widget is appearing on. | |
blog_post_override
| String | The ID(s) of a blog posts which should always show up in the returned listing, despite all other parameter values and filters (comma separated). | |
limit
| Integer | The max number of blog posts to list. |
3
|
tags
| String | The tag(s) that should be used to determine if a post is relevant (comma separated). If a blog post has one of these tags or a similar tag, the post’s relevancy is increased, improving its ranking in the listing. | |
start_date
| datetime | Earliest published date. | |
end_date
| datetime | Latest published date. | |
blog_authors
| String | The name(s) of authors to include posts from (comma separated). | |
path_prefixes
| String | URL paths or subdirectories to include posts from (comma separated). If a blog post has a similar prefix in its path, the post’s relevancy is increased, improving its ranking in the listing. | |
callback
| String | The name of a javascript function to render returned blog posts. The function is passed an array of blog post objects to format. If neither the callback, or post_formatter parameters are specified, the tag will generate HTML in a default format. |
none
|
post_formatter
| String | The name of a custom macro to render returned blog posts. The macro is passed three parameters which are the blogs blog post object to format, the count in the iteration of blog posts, and the total count of blog posts in the results. If not specified or set to “default”, the built-in formatter will be used to format each post. |
default
|
We strongly recommend using the callback
parameter instead of post_formatter
to improve page loading speed.
Blog social sharing renders share counters on your blog posts (if enabled in Content Settings).
{% blog_social_sharing "blog_social_sharing" %}
{% blog_social_sharing "blog_social_sharing" select_blog='359485112' %}
<span id="hs_cos_wrapper_blog_social_sharing" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_blog_social_sharing" style="" data-hs-cos-general-type="widget" data-hs-cos-type="blog_social_sharing">
<div class="hs-blog-social-share">
<ul class="hs-blog-social-share-list">
<li class="hs-blog-social-share-item hs-blog-social-share-item-twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-url="http://designers.hubspot.com/blog" data-size="medium" data-text="">Tweet</a>
</li>
<li class="hs-blog-social-share-item hs-blog-social-share-item-linkedin">
<script type="IN/Share" data-url="http://designers.hubspot.com/blog" data-showzero="true" data-counter="right"></script>
</li>
<li class="hs-blog-social-share-item hs-blog-social-share-item-facebook">
<div class="fb-like" data-href="http://designers.hubspot.com/blog" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true" data-width="120"></div>
</li>
<li class="hs-blog-social-share-item hs-blog-social-share-item-google-plus">
<div class="g-plusone" data-size="medium" data-href="http://designers.hubspot.com/blog"></div>
</li>
</ul>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
select_blog
| 'default' or blog ID | Species which blog is connected to the share counters. This parameter accepts arguments of either 'default' or a blog ID (available in the URL of the Blog dashboard). If you want to use your default blog, this parameter is unnecessary. |
default
|
downgrade_shared_url
| Boolean | Use HTTP in the url sent to the social media networks. Used to preserve counts when upgrading domains to HTTPS only. |
false
|
A blog subscription tag renders the blog subscriber form for a particular blog. This form is automatically created whenever a blog is created in Content Settings, and there is always one subscription form per blog. Please note that the subscribe form's fields are configured within the Forms editor UI.
{% blog_subscribe "blog_subscribe" %}
{% blog_subscribe "subscribe_designers_blog" select_blog='default', title='Subscribe to the Designers Blog', response_message='Thanks for Subscribing!', label='Blog Email Subscription', overrideable=False %}
<span id="hs_cos_wrapper_blog_subscription" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_blog_subscribe" style="" data-hs-cos-general-type="widget" data-hs-cos-type="blog_subscribe">
<h3 id="hs_cos_wrapper_blog_subscription_title" class="hs_cos_wrapper form-title" data-hs-cos-general-type="widget_field" data-hs-cos-type="text">Subscribe to Designers Blog</h3>
<div id="hs_form_target_blog_subscription"></div>
<script charset="utf-8" src="//js.hsforms.net/forms/current.js"></script>
<script>
hbspt.forms.create({ portalId: '327485', formId: 'a8d73dc6-0d3a-486d-8938-b19f28b69c3c', formInstanceId: '60', pageId: 2749976739, pageName: 'Apple, Google & Starbucks: Inside the Web Design Style Guides of 10 Famous Companies', redirectUrl: 'http://designers.hubspot.com/blog/web-design-style-guides-examples?hsFormKey=a56a754bc4c3465015935953363b8ff3#blog_subscription', css: '', target: '#hs_form_target_blog_subscription', formData: { cssClass: 'hs-form stacked' } });
</script>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
select_blog
| 'default' or blog ID | Selects which blog subscription form to render. This parameter accepts arguments of either 'default' or a blog ID (available in the URL of the Blog dashboard). If want to use your default blog, this parameter is unnecessary. |
default
|
title
| String | Defines text in an h3 tag title above the subscribe form. |
"Subscribe Here!"
|
no_title
| Boolean | If True, the h3 tag above the title is removed. |
false
|
response_message
| String | Defines the inline thank-you message that is rendered when a user submits a form. Supports HTML. |
"Thanks for Subscribing!"
|
edit_form_link
| String | This parameter generates a link that allows users to click through to the corresponding Form editor screen. This option will only show in the editor UI if the modules has the parameter overrideable=True. Here is an example where HubID and form ID would be replaced with the information from the URL of your default blog subscriber form: edit_form_link=' <ul>\n <li><a href="/forms/HubID/FormID/edit/" target="_blank">Default Blog</a></li> \n</ul> '. \n drops the code onto a new line. |
A boolean tag creates a checkbox in the UI that prints "true" or "false." In addition to printing the value, this module is useful for defining conditional template logic, when combined with the parameter export_to_template_context
.
{% boolean "boolean" %}
{% boolean "nav_toggle" label='Hide navigation', value=False, no_wrapper=True %}
false
Parameter | Type | Description | Default |
---|---|---|---|
value
| Boolean | Determines whether the checkbox is checked or unchecked. |
False
|
A choice tag creates a dropdown in the content editor UI that prints the value selected by the user. Choice tags are great for giving your users a preset set of options, such as printing the type of page as a page header.
In addition to printing the choice value, this tag is useful for defining conditional template logic, when combined with the parameter export_to_template_context
.
{% choice "choice" %}
{% choice "type_of_page" label='Choose the type of page', value='About', choices='About, Careers, Contact, Store' %}
<span id="hs_cos_wrapper_type_of_page" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_choice" style="" data-hs-cos-general-type="widget" data-hs-cos-type="choice">
About
</span>
Parameter | Type | Description |
---|---|---|
value
| Boolean | The default field value for the dropdown |
choices
| Sequence | A comma-separated list of values, or list of value-label pairs. The syntax for value label pairs is as follows: |
The color tag generates a color picker in the page editor UI that prints a HEX color value to a template. Please note that this module can only be used in templates, not CSS files. If using this tag in a <style>
or inline CSS, you will want to use the no_wrapper=True
parameter to remove the wrapper <span>
wrapper.
{% color "color" %}
{% color "my_color_picker" label='Choose a color', color='#000000', no_wrapper=True %}
#000000
Parameter | Type | Description |
---|---|---|
color
| String | A default HEX color value for the color picker |
A Call to Action or CTA tag allows users to add a HubSpot Call to Action button to a predefined area of a page.
{% cta "cta" %}
{% cta "my_cta" label='Select a CTA', guid='ccd39b7c-ae18-4c4e-98ee-547069bfbc5b', image_src='https://no-cache.hubspot.com/cta/default/53/c7335b66-a0d4-4d19-82eb-75e1626d02d0.png' %}
<span id="hs_cos_wrapper_" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_cta" style="" data-hs-cos-general-type="widget" data-hs-cos-type="cta">
<!--HubSpot Call-to-Action Code -->
<span class="hs-cta-wrapper" id="hs-cta-wrapper-ccd39b7c-ae18-4c4e-98ee-547069bfbc5b">
<span class="hs-cta-node hs-cta-ccd39b7c-ae18-4c4e-98ee-547069bfbc5b" id="hs-cta-ccd39b7c-ae18-4c4e-98ee-547069bfbc5b" style="visibility: visible;">
<a id="cta_button_158015_19a9097a-8dff-4181-b8f7-955a47f29826" class="cta_button " href="//cta-service-cms2.hubspot.com/ctas/v2/public/cs/c/?cta_guid=19a9097a-8dff-4181-b8f7-955a47f29826&placement_guid=ccd39b7c-ae18-4c4e-98ee-547069bfbc5b&portal_id=158015&redirect_url=APefjpFSOqhysLBE-Yye5WFoP82Swxb2PVWpfI3VxlUjuOCHfiVMcxKic3yM28vuwu9UB8_Jyhk6DGRCEN63hKqQOMtMTGmQZ1UNMK3LtNx0sRrAfQQYna2BfZ9RmgQOs8sKO_PcKOP6G26L5wQ5vdcXXOiMCxFPJxzPzUCcl474iiHKbEo5H8LVtZf6e140VOSGJ37NTpxCcPHLDvH9iFaT6mR0BnKzFReaX0FXBj7Lx2rFLVCZcIC0bdaFEGI1uKOJBMNT9RDtEzeJzUHzFYN0b34uv-ZR4w&hsutk=683eeb5b499fdfdf469646f0014603b4&utm_referrer=http%3A%2F%2Fwww.davidjosephhunt.com%2Fvariables%3Fhs_preview%3D159bC1Cj-2863569740&canon=http%3A%2F%2Fwww.davidjosephhunt.com%2Fvariables" style="" cta_dest_link="http://www.hubspot.com/free-trial" title="Start a HubSpot trial"> Start a HubSpot trial </a>
</span>
<script charset="utf-8" src="//js.hscta.net/cta/current.js"></script>
<script type="text/javascript">
hbspt.cta.load(158015, 'ccd39b7c-ae18-4c4e-98ee-547069bfbc5b');
</script>
</span>
<!-- end HubSpot Call-to-Action Code -->
</span>
Parameter | Type | Description |
---|---|---|
embed_code
| String | The embed code for the CTA. \n differentiates line breaks. |
full_html
| String | The embed code for the CTA (Same as embed_code). \n differentiates line breaks. |
image_src
| String | Image src url that defines the preview image in the content editor. |
image_editor
| String | Markup for the image editor preview |
guid
| String | The unique ID number of the CTA. This ID number is available in the URL of the Details screen of a particular CTA. This parameter is used to choose which CTA to display by default. |
image_html
| String | CTA image HTML without the CTA script.* |
image_email
| String | Email-friendly version of the CTA code.* |
*While these parameters are included here for the sake of being comprehensive, the code generated by HubSpot to populate them is very specific. If you need a default CTA selected, rather than trying to develop the CTA parameters from scratch, it is recommended that set up the CTA on a template layout, and then clone to file. You can then copy the HubL CTA module of the CTA with all parameters set correctly for you.
There is also a CTA function that generates a CTA from the ID.
A custom HTML module allows users to enter raw HTML into the content editor. If you need to add extensive default HTML to the tag, you may want to use block syntax.
{% raw_html "raw_html" %}
{% raw_html "my_custom_html_module" label="Enter HTML here" value='<div>My HTML Block</div>' %}
Block Syntax Example:
{% widget_block raw_html "my_custom_html_module" overrideable=True, label='My custom HTML module' %}
{% widget_attribute "value" %}
<div>Default HTML block</div>
{% end_widget_attribute %}
{% end_widget_block %}
<span id="hs_cos_wrapper_my_custom_html_module" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_raw_html" style="" data-hs-cos-general-type="widget" data-hs-cos-type="raw_html">
<div>My HTML block</div>
</span>
Parameter | Type | Description |
---|---|---|
value
| String | Sets the default content HTML of the module. |
Custom Modules allow HubSpot designers to create a custom group of editable content objects to be used across templates and pages on HubSpot’s CMS, while still allowing marketers to control the specific content appearing within those modules on a page-by-page basis. You can learn more about custom modules and their simplified HubL syntax, here.
Custom modules must be built in the Custom Module editor, but they can be included into coded templates and HubL modules. You will see a 'Usage Snippet' in the right sidebar of the Custom Module editor under 'Template Usage'.
Custom modules require the ID of the module as a string as well as a path parameter in order to specify which module to load. The usage snippet will also include a label parameter. See the syntax below:
{% module "module_15677217712485" path="/Custom/Test custom module" %}
{% module "module_25642219712432" path="/Assets/Custom calendar module" label="Custom calendar module" %}
<div id="hs_cos_wrapper_module_15677217712485" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_module" style="" data-hs-cos-general-type="widget" data-hs-cos-type="module">content!</div>
<style>
@import "//cdn2.hubspotqa.net/qa/hub/126/file-613025667-css/custom_widget_example.css"
</style>
<div>
<img class="persons-photo" src="//cdn2.hubspotqa.net/qa/hub/124/file-1360297556-jpeg/dharmesh.jpeg"
alt="dharmesh.jpeg">
<div>
<img class="company-logo with-background"
src="//cdn2.hubspotqa.net/qa/hub/124/file-221882251-png/HubSpot_Logo_2x.png" width="60px" height="inherit"
alt="HubSpot_Logo_2x.png">
</div>
</div>
<div>
<p class="quote">
<span class="quotation-mark"><b>" </b></span>The Content Optimization System matches content with context to
create a highly personalized, relevant and meaningful customer experience.
<span class="quotation-mark"><b>" </b></span>
</p>
</div>
<div class="name-and-company">
<span><b>Dharmesh Shah,</b></span>
<span>HubSpot</span>
</div>
Parameter | Type | Description |
---|---|---|
module_id
| String | The id of the module to render. |
path
| String | The path of the module to render. Include leading slash for absolute path, otherwise path is relative to template. Reference HubSpot default modules with paths corresponding to their HubL tags such as @hubspot/rich_text, @hubspot/linked_image, etc. |
The backup unsubscribe tag renders for email recipients, if HubSpot is unable to determine their email address, when that recipient tries to unsubscribe. This tag renders a form for the contact to enter his or her email address to unsubscribe from email communications. It should be used on an Unsubscribe Backup system template.
{% email_simple_subscription "email_simple_subscription" %}
{% email_simple_subscription "email_simple_subscription" header='Email Unsubscribe', input_help_text='Your email address:', input_placeholder='email@example.com', button_text='Unsubscribe', label='Backup Unsubscribe' %}
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""></span>
<div class="page-header">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""></span>
<h1><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style="">Email Unsubscribe</span></h1><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""></span>
</div>
<form id="email-prefs-form" method="post" name="email-prefs-form" style="position: relative">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""></span>
<div id="content">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""></span>
<h3 style="font-weight: normal"><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style="">Your email address:</span></h3>
<div style="padding-bottom: 10px">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""><input class="email-edit hs-input" name="email" placeholder="email@example.com" style="padding: 6px; font-size: 15px; width: 507px; margin-left: 0px" type="email" value=""></span>
</div><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""><input class="hs-button primary" id="submitbutton" type="submit" value="Unsubscribe"></span>
</div><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_simple_subscription" data-hs-cos-general-type="widget" data-hs-cos-type="email_simple_subscription" id="hs_cos_wrapper_email_simple_subscription" style=""></span>
</form>
Parameter | Type | Description | Default |
---|---|---|---|
header
| String | Renders text in an h1 tag above the unsubscribe form. |
"Email Unsubscribe"
|
input_help_text
| String | Renders help text in an h3 tag above your email unsubscribe form field. |
"Your email address:"
|
input_placeholder
| String | Adds placeholder text within the email address form field. |
"email@example.com"
|
button_text
| String | Changes the text of the unsubscribe form submit button. |
"Unsubscribe"
|
This module renders when an email recipient goes to edit his or her subscription preferences. It should be used on a Subscription Preference system template.
{% email_subscriptions "email_subscriptions" %}
{% email_subscriptions "email_subscriptions" resubscribe_button_text='Yes, resubscribe me!', unsubscribe_single_text='Uncheck the types of emails you do not want to receive:', subheader_text='\n If this is not your email address, please ignore this page since the email associated with this page was most likely forwarded to you.\n', unsubscribe_all_unsubbed_text='You are presently unsubscribed from all of our emails. Would you like to receive our emails again?', button_text='Update email preferences', label='Subscription Preferences', header='Communication Preferences', unsubscribe_all_option='Unsubscribe me from all mailing lists.', unsubscribe_all_text='Or check here to never receive any emails:' %}
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""></span>
<form id="email-prefs-form" method="post" name="email-prefs-form">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""></span>
<div class="page-header">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""></span>
<h1><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style="">Communication Preferences</span></h1>
<h2><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style="">example@email.com</span></h2><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""><br></span>
<p><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style="">If this is not your email address, please ignore this page since the email associated with this page was most likely forwarded to you.</span></p>
</div>
<div class="email-prefs" id="content">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""></span>
<p class="header"><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style="">Uncheck the types of emails you do not want to receive:</span></p><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""><input name="email" type="hidden" value="example@email.com"> <input name="unsub_url" type="hidden" value=""> <input name="unsubed_all" type="hidden" value="false"> <input name="subscription_ids" type="hidden" value=""></span>
<div class="item">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""></span>
<div class="item-inner">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""></span>
<div class="checkbox-row">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions" id="hs_cos_wrapper_email_subscriptions" style=""><span class="fakelabel"><input id="id_0" name="id_0" type="checkbox"> <span>Example Subscription #1</span></span></span>
</div>
<p>Your email type description</p>
</div>
</div>
<div class="item">
<div class="item-inner">
<div class="checkbox-row">
<span class="fakelabel"><input id="id_0" name="id_0" type="checkbox"> <span>Example Subscription #2</span></span>
</div>
<p>Your email type description</p>
</div>
</div>
<div class="subscribe-options" style="margin-right: 0">
<p class="header">Or check here to never receive any emails:</p>
<p><label for="globalunsub"><input id="globalunsub" name="globalunsub" type="checkbox"> <span>Unsubscribe me from all mailing lists.</span></label></p>
</div><input class="hs-button primary" id="submitbutton" type="submit" value="Update email preferences">
<div class="clearer"></div>
</div>
</form>
Parameter | Type | Description | Default |
---|---|---|---|
header
| String | Renders text in an h1 tag above the subscription preferences form. |
"Communication Preferences"
|
subheader_text
| String | Populates text below the heading above the unsubscribe preferences. |
"<p>\n If this is not your email address, please ignore this page since the email associated with this page was most likely forwarded to you.\n</p>"
|
unsubscribe_single_text
| String | Renders text in a <p class="header"> above the subscription options. |
"Uncheck the types of emails you do not want to receive:"
|
unsubscribe_all_text
| String | Renders text in a <p class="header"> above the unsubscribe from all emails checkbox input. |
"Or check here to never receive any emails:"
|
unsubscribe_all_unsubbed_text
| String | Populates text within a <p> that renders, if a contact is currently unsubscribed from all emails. |
"You are presently unsubscribed from all of our emails. Would you like to receive our emails again?"
|
unsubscribe_all_option
| String | Sets the text next to the unsubscribe from all emails checkbox input. |
"Unsubscribe me from all mailing lists."
|
button_text
| String | Sets the text of the submit button that updates subscription preferences. |
"Update email preferences"
|
resubscribe_button_text
| String | Sets the text of the submit button for when contacts are resubscribing. |
"Yes, resubscribe me!"
|
The email subscriptions update confirmation is a module that can be added to the thank you template for when a recipient updates his or her subscription preferences or unsubscribes. It should be used on a Subscription Preference system template.
{% email_subscriptions_confirmation "email_subscriptions_confirmation" %}
{% email_subscriptions_confirmation "email_subscriptions_confirmation" label='Subscriptions Update Confirmation', unsubscribe_all_success='You have successfully unsubscribed from all email communications.', subscription_update_success='You have successfully updated your email preferences.', subheader_text='\n If this is not your email address, please ignore this page since the email associated with this page was most likely forwarded to you.\n' %}
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions_confirmation" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions_confirmation" id="hs_cos_wrapper_email_subscriptions_confirmation" style=""></span>
<div class="page-header">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions_confirmation" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions_confirmation" id="hs_cos_wrapper_email_subscriptions_confirmation" style=""></span>
<h2><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions_confirmation" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions_confirmation" id="hs_cos_wrapper_email_subscriptions_confirmation" style="">example@email.com</span></h2><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions_confirmation" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions_confirmation" id="hs_cos_wrapper_email_subscriptions_confirmation" style=""><br></span>
<p><span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions_confirmation" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions_confirmation" id="hs_cos_wrapper_email_subscriptions_confirmation" style="">If this is not your email address, please ignore this page since the email associated with this page was most likely forwarded to you.</span></p>
</div>
<div class="success" id="content">
<span class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_email_subscriptions_confirmation" data-hs-cos-general-type="widget" data-hs-cos-type="email_subscriptions_confirmation" id="hs_cos_wrapper_email_subscriptions_confirmation" style="">You have successfully updated your email preferences.</span>
</div>
Parameter | Type | Description | Default |
---|---|---|---|
header
| String | Renders text in an h1 tag above the unsubscribe form. |
"Communication Preferences"
|
subheader_text
| String | Populates text above the confirmation message. |
"<p>\n If this is not your email address, please ignore this page since the email associated with this page was most likely forwarded to you.\n</p>"
|
unsubscribe_all_success
| String | Sets the text that will display when someone unsubscribes from all email communications. |
"You have successfully unsubscribed from all email communications."
|
subscription_update_success
| String | Sets the text when a recipient updates his or her subscription preferences. |
"You have successfully updated your email preferences."
|
Flexible columns are vertical columns in a template that allow the end user to insert and remove a variety of modules of their choosing into the template, while editing in the content editor. When coding a flexible column with HubL, you can choose to wrap other HubL modules to make them appear in the flexible column by default. The sample code below shows the basic syntax and a sample flexible column with a rich-text and form module contained as default content. Please note that flexible columns can only be added to page templates, not blog or email templates.
{% widget_container "my_flexible_column" %}
{% module "rich_text" path="@hubspot/rich_text" %}
{% module "linked_image" path="@hubspot/linked_image" %}
{% end_widget_container %}
<span id="hs_cos_wrapper_my_flexible_column" class="hs_cos_wrapper hs_cos_wrapper_widget_container hs_cos_wrapper_type_widget_container" style="" data-hs-cos-general-type="widget_container" data-hs-cos-type="widget_container"><div id="hs_cos_wrapper_rich_text" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_module" style="" data-hs-cos-general-type="widget" data-hs-cos-type="module"><span id="hs_cos_wrapper_rich_text_" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_rich_text" style="" data-hs-cos-general-type="widget" data-hs-cos-type="rich_text"><h2>Something Powerful</h2>
<h3>Tell The Reader More</h3>
<p>The headline and subheader tells us what you're <a href="#">offering</a>, and the form header closes the deal. Over here you can explain why your offer is so great it's worth filling out a form for.</p>
<p>Remember:</p>
<ul>
<li>Bullets are great</li>
<li>For spelling out <a href="#">benefits</a> and</li>
<li>Turning visitors into leads.</li>
</ul></span></div>
<div id="hs_cos_wrapper_linked_image" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_module" style="" data-hs-cos-general-type="widget" data-hs-cos-type="module">
<span id="hs_cos_wrapper_linked_image_" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_linked_image" style="" data-hs-cos-general-type="widget" data-hs-cos-type="linked_image"><img src="https://static.hubspot.com/final/img/content/email-template-images/placeholder_200x200.png" class="hs-image-widget " style="width:200px;border-width:0px;border:0px;" width="200" alt="placeholder_200x200" title="placeholder_200x200"></span>
</div></span>
Modules cannot contain flexible columns, but they can contain repeatable fields and groups. This way you can create modules like carousels which contain slides that can be re-arranged, added, removed etc.
Allows users to select a HubSpot form to add to their page.
{% form "form" %}
{% form "my_form" form_to_use='08bd9f0d-3be9-41c2-93b6-231a3a71b143', title='Free Trial' %}
Block Syntax Example:
{% widget_block form "my_form" form_follow_ups_follow_up_type='', response_redirect_id=306590405, form_to_use='08bd9f0d-3be9-41c2-93b6-231a3a71b143', title='Free Trial', notifications_are_overridden=True, sfdc_campaign='', response_message='Thanks for submitting the form.', response_response_type='redirect', response_redirect_url='', overrideable=True, gotowebinar_webinar_key='', response_redirect_name='Homepage (http://www.hubspot.com/)', label='Form', response={message='Thank you for submitting the form.', redirect_url=''} %}
{% widget_attribute "notifications_override_email_addresses" is_json=True %}["noreply@hubspot.com"]{% end_widget_attribute %}
{% end_widget_block %}
<div id="hs_cos_wrapper_my_form" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_form" style="" data-hs-cos-general-type="widget" data-hs-cos-type="form">
<h3 id="hs_cos_wrapper_module_13885064832664947_title" class="hs_cos_wrapper form-title" data-hs-cos-general-type="widget_field" data-hs-cos-type="text">Free Trial</h3>
<div id="hs_form_target_module_13885064832664947">
<form accept-charset="UTF-8" enctype="multipart/form-data" id="hsForm_08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756" class="hs-form stacked hs-custom-form" action="https://forms.hubspot.com/uploads/form/v2/158015/08bd9f0d-3be9-41c2-93b6-231a3a71b143" method="POST" novalidate="novalidate">
<div class="hs_lastname field hs-form-field">
<label placeholder="Enter your Last Name" for="lastname-08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756">Last Name</label>
<div class="hs-field-desc" style="display: none;"></div>
<div class="input">
<input class="hs-input" type="text" id="lastname-08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756" name="lastname" value="" placeholder="">
</div>
</div>
<div class="hs_firstname field hs-form-field">
<label placeholder="Enter your First Name" for="firstname-08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756">First Name</label>
<div class="hs-field-desc" style="display: none;"></div>
<div class="input">
<input class="hs-input" type="text" id="firstname-08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756" name="firstname" value="" placeholder="">
</div>
</div>
<div class="hs_email field hs-form-field">
<label placeholder="Enter your Email" for="email-08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756">Email<span class="hs-form-required"> * </span></label>
<div class="hs-field-desc" style="display: none;"></div>
<div class="input">
<input class="hs-input" type="email" required="required" id="email-08bd9f0d-3be9-41c2-93b6-231a3a71b143_6756" name="email" value="" placeholder="">
</div>
</div>
<div class="hs_submit">
<div class="hs-field-desc" style="display: none;"></div>
<div class="actions">
<input class="hs-button primary large" type="submit" value="Submit">
</div>
</div>
</form>
</div>
<script charset="utf-8" src="//js.hsforms.net/forms/current.js"></script>
<script>
hbspt.forms.create({
portalId: '158015',
formId: '08bd9f0d-3be9-41c2-93b6-231a3a71b143',
formInstanceId: '6756',
pageId: 1,
redirectUrl: "http:\/\/www.davidjosephhunt.com\/404",
deactivateSmartForm: true,
css: '',
target: '#hs_form_target_module_13885064832664947',
contentType: "landing-page",
formData: {
cssClass: 'hs-form stacked hs-custom-form'
}
});
</script>
</div>
Parameter | Type | Description | Default |
---|---|---|---|
form_key
| String | Specifies a unique id for the form at the page level. | |
form_to_use
| String | Specifies which form to load by default, based on the Form ID. This ID is available in the form editor URL of a each form. | |
title
| String | Populates an h3 header tag above the form. | |
no_title
| Boolean | If True, the h3 tag above the title is removed. |
False
|
form_follow_ups_follow_up_type
| Enumeration | Specifies follow up actions such as enrolling a contact into a workflow or sending a simple follow up email. Possible values include: no_action, simple, and automation. | |
simple_email_for_live_id
| Number | Specifies the ID of the simple follow-up email for the live page. | |
simple_email_for_buffer_id
| Number | Specifies the ID of the simple follow-up email for the auto-save version of a page. | |
follow_up_type_simple
| Boolean | If true, enables a simple follow-up email. Alternative to form_follow_ups_follow_up_type. | |
follow_up_type_automation
| Boolean | If true, enrolls submissions in a workflow. Alternative to form_follow_ups_follow_up_type. | |
simple_email_campaign_id
| Number | Specifies the ID of the simple follow-up email. Alternative to simple_email_for_live_id. | |
form_follow_ups_workflow_id
| Number | Specifies the ID of the workflow in which to enroll submissions. | |
response_redirect_url
| String | If redirecting to an external page, this parameter specifies the URL to redirect to. | |
response_redirect_id
| Number | If redirecting to HubSpot hosted page, this parameter specifies the page ID of that page. The page ID is available in the page editor URL of each page. | |
response_response_type
| Enumeration | Determines whether to redirect to another page or to display an inline thank you message on submission. The value of this parameter should either be 'redirect' or 'inline'. |
inline
|
response_message
| String | Sets an inline thank you message. This parameter supports HTML. | |
notifications_are_overridden
| Boolean | If True, the form will send form notifications to specified email addresses selected in the notifications_override_email_addresses |
False
|
notifications_override_guid_buffer
| String | ID of override settings in auto-save version of page. | |
notifications_override_guid
| String | ID of override settings in live version of page. | |
notifications_override_email_addresses
| JSON | Block syntax supports a JSON list of email recipients that will be notified upon form submission. These email addresses will override the email notification settings set in the form. | |
gotowebinar_webinar_key
| String | Specifies the GoToWebinar webinar to enroll contacts who submit the form into. Only available for portals using the GoToWebinar integration. | |
sfdc_campaign
| String | Specifies the Salesforce campaign to enroll contacts who submit the form into. This parameter's value should be the SFDC campaign ID and is only available for portals that are integrated with Salesforce. |
Renders copyright information with the year and company name specified in Content Settings (Email > Footer Information).
{% page_footer "page_footer" %}
<span id="hs_cos_wrapper_page_footer" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_page_footer" style="" data-hs-cos-general-type="widget" data-hs-cos-type="page_footer">
<footer>
<span class="hs-footer-company-copyright">© 2020 HubSpot</span>
</footer>
</span>
Generates a HubSpot gallery tag. This gallery tag is based on Slick. While you can create a gallery module with standard module HubL syntax, If you want to predefine default slides using HubL, you must use block syntax. Both methods are shown below.
{% gallery "crm_gallery" %}
<-- Block syntax -->
{% widget_block gallery "Gallery" display_mode='standard' sizing='static', transition='slide', caption_position='below', auto_advance=True, overrideable=True, description_text='', show_pagination=True, label='Gallery', loop_slides=True, num_seconds=5 %}
{% widget_attribute "slides" is_json=True %}
[{
"caption": "CRM Contacts App",
"show_caption": true,
"link_url": "http://www.hubspot.com/crm",
"alt_text": "Screenshot of CRM Contacts",
"img_src": "http://go.hubspot.com/hubfs/Contacts-View-1.png?t=1430860504240",
"open_in_new_tab": true
},
{
"caption": "HubSpot CRM Contact Profile",
"show_caption": true,
"link_url": "http://www.hubspot.com/",
"alt_text": "HubSpot CRM Contact Profile",
"img_src": "http://cdn2.hubspot.net/hubfs/53/Contact-Profile.png?t=1430860504240",
"open_in_new_tab": true
}]
{% end_widget_attribute %}
{% end_widget_block %}
<span id="hs_cos_wrapper_crm_gallery" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_gallery" style=""
data-hs-cos-general-type="widget" data-hs-cos-type="gallery">
<div id="hs_cos_flex_gallery_crm_gallery" class="hs_cos_flex-gallery flex-gallery-main gallery-mode-gallery">
<div class="hs_cos_flex-viewport" style="overflow: hidden; position: relative;">
<ul class="hs_cos_flex-slides hs_cos_flex-slides-main "
style="width: 800%; -webkit-transition-duration: 0s; transition-duration: 0s; -webkit-transform: translate3d(-1090px, 0px, 0px);">
<li class="hs_cos_flex-slide-main clone" aria-hidden="true"
style="width: 1090px; float: left; display: block;">
<a href="//www.hubspot.com/" target="_blank"><img
src="//cdn2.hubspot.net/hubfs/53/Contact-Profile.png?t=1430860504240&t=1430335520686"
alt="HubSpot CRM Contact Profile" draggable="false"></a>
<div class="caption">
HubSpot CRM Contact Profile
</div>
</li>
<li class="hs_cos_flex-slide-main hs_cos_flex-active-slide"
style="width: 1090px; float: left; display: block;">
<a href="//www.hubspot.com/crm" target="_blank"><img
src="http://go.hubspot.com/hubfs/Contacts-View-1.png?t=1430860504240&t=1430335520686"
alt="Screenshot of CRM Contacts" draggable="false"></a>
<div class="caption">
CRM Contacts App
</div>
</li>
<li class="hs_cos_flex-slide-main" style="width: 1090px; float: left; display: block;">
<a href="//www.hubspot.com/" target="_blank"><img
src="//cdn2.hubspot.net/hubfs/53/Contact-Profile.png?t=1430860504240&t=1430335520686"
alt="HubSpot CRM Contact Profile" draggable="false"></a>
<div class="caption">
HubSpot CRM Contact Profile
</div>
</li>
<li class="hs_cos_flex-slide-main clone" aria-hidden="true"
style="width: 1090px; float: left; display: block;">
<a href="//www.hubspot.com/crm" target="_blank"><img
src="http://go.hubspot.com/hubfs/Contacts-View-1.png?t=1430860504240&t=1430335520686"
alt="Screenshot of CRM Contacts" draggable="false"></a>
<div class="caption">
CRM Contacts App
</div>
</li>
</ul>
</div>
<ol class="hs_cos_flex-control-nav hs_cos_flex-control-paging">
<li><a class="hs_cos_flex-active">1</a></li>
<li><a class="">2</a></li>
</ol>
<ul class="hs_cos_flex-direction-nav">
<li><a class="hs_cos_flex-prev" href="#">Previous</a></li>
<li><a class="hs_cos_flex-next" href="#">Next</a></li>
</ul>
</div>
<script>
window.hsSliderConfig = window.hsSliderConfig || {};
window.hsSliderConfig['crm_gallery'] = {
mode: 'gallery',
mainConfig: {
"animationLoop": true,
"direction": "horizontal",
"slideshowSpeed": 5000.0,
"controlNav": true,
"smoothHeight": false,
"namespace": "hs_cos_flex-",
"slideshow": true,
"selector": ".hs_cos_flex-slides > li",
"animation": "slide"
}
};
</script>
Parameter | Type | Description | Default |
---|---|---|---|
slides
| JSON | A JSON list of the default caption, the link url, the alt text, the image src, and whether to open in a new tab. See block syntax above. | |
loop_slides
| Boolean | When True, continuously loop through slides. |
True
|
num_seconds
| Number | Time in seconds to pause between slides. |
5
|
show_pagination
| Boolean | Provide buttons below slider to navigate among slides. |
True
|
sizing
| Enumeration | Determines whether the slider changes sizes, based on the height of the slides. Possible values include: "static" or "resize". |
"static"
|
auto_advance
| Boolean | Automatically advance slides after the time set in num_seconds. |
False
|
transition
| Enumeration | Sets the type of slide transition. Possible values include: "fade" or "slide". |
"slide"
|
caption_position
| Enumeration | Affects positioning of caption on or below the slide. Possible values include "below" or "superimpose". |
"below"
|
display_mode
| Enumeration | Determines how the image gallery will be displayed. Possible values include: "standard", "lightbox", "thumbnail". |
"standard"
|
lightboxRows
| Number | If "display_mode" is set to "lightbox", this parameter will control the number of rows displayed within the lightbox. |
3
|
Generates a header module that will render text as an h1-h6 tag.
{% header "header" %}
{% header "my_header" header_tag='h1', overrideable=True, value='A clear and bold header', label='Header' %}
<span id="hs_cos_wrapper_my_header" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_header" style="" data-hs-cos-general-type="widget" data-hs-cos-type="header">
<h1>A clear and bold header</h1>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
header_tag
| String | Select which heading tag to render. Possible values include: h1, h2, h3, h4, h5, h6. |
h1
|
value
| String | Renders default text within the heading module. |
"A clear bold header"
|
Creates a image tag that allows users to select an image from the content editor. If you want the image to be linked to a destination URL, you should use linked_image below.
{% image "image" %}
{% image "executive_image" label='Executive photo', alt='Photo of Brian Halligan', src='//cdn2.hubspot.net/hub/53/file-733888619-jpg/assets/hubspot.com/about/management/brian-home.jpg', width='300' %}
<span id="hs_cos_wrapper_executive_image" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_image" style="" data-hs-cos-general-type="widget" data-hs-cos-type="image">
<img src="//cdn2.hubspot.net/hub/53/file-733888619-jpg/assets/hubspot.com/about/management/brian-home.jpg?width=300" class="hs-image-widget " width="300" alt="Photo of Brian Halligan" title="Photo of Brian Halligan">
</span>
Parameter | Type | Description | Default |
---|---|---|---|
alt
| String | Sets the default alt text for the image. | |
src
| String | Populates the src attribute of the img tag. | |
width
| Number | Sets the width attribute of the img tag. |
The width of the image
|
height
| Number | Sets a min-height in a style attribute of the img tag for email templates only. |
The height of the image
|
hspace
| Number | Sets the hspace attribute of the img tag. | |
align
| String | Sets the align attribute of the img tag. Possible values include: left, right, & center. | |
style
| String | Adds inline CSS declarations to the img tag. For example style="border:1px solid blue; margin:10px" | |
loading
| String | Controls img element loading attribute. Used for browser based lazy loading. |
An image src module creates a image selector in the content editor, but rather than printing a img tag, it renders the URL of the image. This tag is generally used with no_wrapper=True
parameter, so that the image src can be added to inline CSS or other markup. An alternative to using this tag is to use the export_to_template_context
parameter.
{% image_src "image_src" %}
{% image_src "executve_image_src" src='//cdn2.hubspot.net/hub/53/file-733888614-jpg/assets/hubspot.com/about/management/dharmesh-home.jpg', no_wrapper=True %}
//cdn2.hubspot.net/hub/53/file-733888614-jpg/assets/hubspot.com/about/management/dharmesh-home.jpg
Parameter | Type | Description | Default |
---|---|---|---|
src
| String | Specifies the default URL image src. |
Adds a Globe Icon with links to the translated versions of a given CMS page. Learn more about multi-language content here.
{% language_switcher "language_switcher" overrideable=false, display_mode='localized', label='Language Switcher' %}
<span id="hs_cos_wrapper_module_1487954976079503" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_language_switcher" style="" data-hs-cos-general-type="widget" data-hs-cos-type="language_switcher">
<div class="lang_switcher_class">
<div class="globe_class">
<ul class="lang_list_class">
<li>
<a class="lang_switcher_link" href="http://www.hubspot.com">English</a>
</li>
<li>
<a class="lang_switcher_link" href="http://www.hubspot.com/es">Spanish</a>
</li>
</ul>
</div>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
display_mode
| Enumeration | The language of the text in the language switcher. Values are:
|
Localized
|
Creates a user-selectable image that is wrapped in a link. This module has all of the parameters of an image module with two additional parameters that specify the link destination URL and whether the link opens in a new window.
{% linked_image "linked_image" %}
{% linked_image "executive_image" label='Executive photo', link="https://twitter.com/bhalligan", open_in_new_tab=True, alt='Photo of Brian Halligan', src='//cdn2.hubspot.net/hub/53/file-733888619-jpg/assets/hubspot.com/about/management/brian-home.jpg', width='300' %}
<span id="hs_cos_wrapper_executive_image" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_linked_image" style="" data-hs-cos-general-type="widget" data-hs-cos-type="linked_image">
<a href="https://twitter.com/bhalligan" target="_blank" id="hs-link-executive_image" style="border-width:0px;border:0px;">
<img src="//cdn2.hubspot.net/hub/53/file-733888619-jpg/assets/hubspot.com/about/management/brian-home.jpg?width=300" class="hs-image-widget " style="width:300px;border-width:0px;border:0px;" width="300" alt="Photo of Brian Halligan" title="Photo of Brian Halligan">
</a>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
alt
| String | Sets the default alt text for the image. | |
src
| String | Populates the src attribute of the img tag. | |
width
| Number | Sets the width attribute of the img tag. |
The width of the image
|
height
| Number | Sets a min-height in a style attribute of the img tag for email templates only. |
The height of the image
|
hspace
| Number | Sets the hspace attribute of the img tag. | |
align
| String | Sets the align attribute of the img tag. Possible values include: left, right, & center. | |
style
| String | Adds inline CSS declarations to the img tag. For example style="border:1px solid blue; margin:10px" | |
open_in_new_tab
| Boolean | Selects whether or not to open the destination URL in another tab. |
False
|
link
| String | Sets the destination URL of the link that wraps the img tag. | |
target
| String | Sets the target attribute of the link tag. | |
loading
| String | Controls img element loading attribute. Used for browser based lazy loading. |
A logo module renders your company's logo image from Content Settings.
{% logo "logo" %}
{% logo "my_logo" width='200' %}
<span id="hs_cos_wrapper_my_logo" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_logo" style="" data-hs-cos-general-type="widget" data-hs-cos-type="logo">
<a href="//www.hubspot.com" id="hs-link-my_logo">
<img src="//cdn2.hubspot.net/hub/53/file-1237149549-png/assets/hubspot.com/V2-Global/hubspot-logo-dark.png?t=1430948896766&width=200" class="hs-image-widget " width="200" alt="HubSpot logo" title="HubSpo logot">
</a>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
suppress_company_name
| Boolean | Hides company name if an image logo isn't set. |
False
|
alt
| String | Sets the default alt text for the image. |
Value in Content Settings
|
src
| String | Populates the src attribute of the img tag. |
Value in Content Settings
|
width
| Number | Sets the width attribute of the img tag. |
The width of the image
|
height
| Number | Sets a min-height in a style attribute of the img tag for email templates only. |
The height of the image
|
hspace
| Number | Sets the hspace attribute of the img tag. | |
align
| String | Sets the align attribute of the img tag. Possible values include: left, right, & center. | |
style
| String | Adds inline CSS declarations to the img tag. For example style="border:1px solid blue; margin:10px" | |
open_in_new_tab
| Boolean | Selects whether or not to open the destination URL in another tab. |
False
|
link
| String | Sets the destination URL of the link that wraps the img tag. | |
override_inherited_src
| Boolean | If true, use src from logo widget rather than src inherited from settings or template. |
True
|
heading_style
| String | When using non-linked text-based logos, this wraps the text-based logo in one of the following available options as an HTML tag: |
h1
|
loading
| String | Controls img element loading attribute. Used for browser based lazy loading. |
Generates an advanced menu based on a menu tree in Content Settings > Advanced Menus. See menus and navigation for more information on using menus in templates and modules. If id
is set to null
the menu tag will render the default menu for the HubSpot account.
{% menu "menu" %}
{% menu "my_menu" id=456, site_map_name='Default', overrideable=False, root_type='site_root', flyouts='true', max_levels='2', flow='horizontal', label='Advanced Menu' %}
<div id="hs_menu_wrapper_my_menu" class="hs-menu-wrapper active-branch flyouts hs-menu-flow-horizontal" data-sitemap-name="Default">
<ul>
<li class="hs-menu-item hs-menu-depth-1"><a href="http://www.underseaband.com/music">Music</a></li>
<li class="hs-menu-item hs-menu-depth-1"><a href="http://www.underseaband.com/shows">Shows</a></li>
<li class="hs-menu-item hs-menu-depth-1"><a href="http://www.underseaband.com/blog">Blog</a></li>
<li class="hs-menu-item hs-menu-depth-1"><a href="http://www.underseaband.com/contact">Contact</a></li>
</ul>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
id
| Integer | ID of Menu Tree from Advanced Menus in Content Settings. | |
site_map_name
| String | Name of Menu Tree from Advanced Menus in Content Settings. |
'default'
|
root_type
| Enumeration | Specifies the type of advanced menus. Options include: "site_root", "top_parent", "parent", "page_name", "page_id", and "breadcrumb". These values correspond to static, dynamic by section, dynamic by page, and breadcrumb. |
'site_root'
|
flyouts
| String | When true, a class is added to the menu tree that can be styled to allow child menu items will appear when you hover over the parent. When false, child menu items will always appear. |
'true'
|
max_levels
| Integer | Determines how many levels of nested menus render in the markup. This parameter dictates number of menu tree children that can be expanded in the menu. |
2
|
flow
| Enumeration | Sets orientation of menu items. This adds classes to menu tree, so that they can be styled accordingly. Possible values include "horizontal", "vertical" or "vertical_flyouts". Horizontal menus display items side-by-side, and vertical menus are top-to-bottom. |
'horizontal'
|
root_key
| String | Used to find the menu root. When root_type is set to page_id or page_name, this param should be the page ID or the label of the page, respectively. |
'horizontal'
|
Adds a password prompt to password-protected pages.
{% password_prompt "password_prompt" %}
{% password_prompt "my_password_prompt" submit_button_text='Submit', bad_password_message='Sorry, please try again.\n', label='Password Prompt' %}
<span id="hs_cos_wrapper_password_prompt" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_password_prompt" style="" data-hs-cos-general-type="widget" data-hs-cos-type="password_prompt">
<form method="post" action="/_hcms/protected/auth">
<input name="content_id" type="hidden" value="1">
<input name="redirect_url" type="hidden" value="https://preview.hs-sites.com/content-rendering/v1/public/_hcms/preview/template/multi">
<input name="password" type="password" id="hs-pwd-widget-password" style="height: 22px; margin-top: -5px">
<input type="submit" class="hs-button primary large" value="Submit">
</form>
<script type="text/javascript">
document.getElementById("hs-pwd-widget-password").focus();
</script>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
submit_button_text
| String | Label for button below password entry field. |
'Submit'
|
bad_password_message
| String | Message displayed if incorrect password entered. |
'<p>Sorry, please try again.</p>'
|
password_placeholder
| String | Defines placeholder text within the password field. |
'Password'
|
Creates a linked listing of posts by topic, posts by month, or posts by author.
This module can only be used in templates for Blog Post.
{% post_filter "post_filter" %}
{% post_filter "posts_by_topic" select_blog='default', expand_link_text='see all', overrideable=False, list_title='Posts by Topic', max_links=5, filter_type='topic', label='Posts by Topic' %}
<span id="hs_cos_wrapper_posts_by_topic" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_post_filter" style="" data-hs-cos-general-type="widget" data-hs-cos-type="post_filter">
<div class="block">
<h3>Posts by Topic</h3>
<div class="widget-module">
<ul>
<li><a href="http://www.underseaband.com/blog/topic/pedals">pedals (15)</a></li>
<li><a href="http://www.underseaband.com/blog/topic/music-recommendations">music recommendations (7</a></li>
<li><a href="http://www.underseaband.com/blog/topic/undersea">Undersea (6)</a> </li>
<li> <a href="http://www.underseaband.com/blog/topic/band">band (2)</a> </li>
<li> <a href="http://www.underseaband.com/blog/topic/diy-tips">DIY tips (2)</a> </li>
<li> <a href="http://www.underseaband.com/blog/topic/visual-artists">Visual artists (1)</a> </li>
</ul>
</div>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
select_blog
| 'default' or blog ID | Selects the HubSpot blog to use. This parameter uses either an blog ID or 'default' value. |
'default'
|
expand_link_text
| String | Text link to display if more posts than max_links number available. Exclude parameter to omit link. |
'see all'
|
list_title
| String | List title to display. |
''
|
list_tag
| String | Sets the tag used for the list. Value should generally be 'ul' or 'ol'. |
'ul'
|
title_tag
| String | Sets the tag used for the list title. |
'h3'
|
max_links
| Number | Maximum number of filter values to display. Excude parameter to show all. |
5
|
filter_type
| Enumeration | Selects the type of filter. Possible values include 'topic', 'month', and 'author'. |
'topic'
|
Adds a listing of most popular or top posts.
This tag can only be used in templates for Blog Post. This tag's content is loaded asynchronously on the client-side. As a result, if you want to manipulate the feed after its loaded, you'll need to define a global JS function to handle that manipulation. Use the function hsPostListingComplete(feeds), where feeds is the jQuery selector on all feeds that have been completed. You will want to directly manipulate the DOM object in that function.
{% post_listing "post_listing" %}
{% post_listing "top_posts" select_blog='default', label='Recent Posts', overrideable=False, list_title='Recent Posts', listing_type='recent', max_links=5 %}
<span id="hs_cos_wrapper_top_posts" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_post_listing" style="" data-hs-cos-general-type="widget" data-hs-cos-type="post_listing">
<div class="block">
<h3>Most popular posts</h3>
<div class="widget-module">
<ul>
<li><a href="http://www.underseaband.com/blog/5-emerging-bands-that-you-need-to-hear">5 emerging bands that you need to hear</a></li>
<li><a href="http://www.underseaband.com/blog/pedal-board-power-supplies">Pedal Board Power Supplies</a></li>
<li><a href="http://www.underseaband.com/blog/pedal-board-wiring">Pedal Board Wiring</a></li>
<li><a href="http://www.underseaband.com/blog/pedal-board-layouts">Pedal Board Layouts</a></li>
<li><a href="http://www.underseaband.com/blog/your-teeth-shake">Your Teeth Shake</a></li>
</ul>
</div>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
select_blog
| 'default' or blog ID | Selects the HubSpot blog to use for the listing. This parameter uses either an blog ID or 'default' value. |
'default'
|
list_title
| String | List title to display. |
''
|
list_tag
| String | Sets the tag used for the list. Value should generally be 'ul' or 'ol'. |
'ul'
|
title_tag
| String | Sets the tag used for the list title. |
'h3'
|
listing_type
| String | List the blog posts by most recent or most popular in a time range. Possible values include recent, popular_all_time, popular_past_year, popular_past_six_months, and popular_past_month. |
'recent'
|
max_links
| Number | Maximum number of blog posts to list. |
5
|
include_featured_image
| Boolean | Display featured image along with post link. |
False
|
A HubL tag that enqueues a style element to be rendered in the <head>
. To enqueue a stylesheet from a different file to render in the <head />
via a <link />
tag (as opposed to inline as shown here), use the HubL function require_css(absolute_url) instead.
{{ standard_header_includes }}
<!-- more html -->
{% require_css %}
<style>
body {
color: red;
}
</style>
{% end_require_css %}
{{ standard_footer_includes }}
<!-- other standard header html -->
<style>
body {
color: red;
}
</style>
<!-- more html -->
<!-- other standard footer html -->
A HubL tag that enqueues anything placed inside of it into the standard_header_includes
which is in the template's <head>
. For most Javascript and CSS see require_js
and require_css
. Some use-cases for require_head
include supplying meta tags, and special link tags (like prefetch and preconnect) from modules.
{% require_head %}
<meta name="third-party-app-verification-id" content="123456">
<link rel="prefetch" href="http://example.com/large-script.js">
<!-- these are purely examples, you could add anything that requires being in the head. require_css and require_js should be used instead of this when embedding a style tag or script tag.-->
{% end_require_head %}
A HubL tag that enqueues a script element to be rendered. To enqueue a script to render in the <head />
from a different file via a <script />
element (as opposed to inline as shown here), use the HubL function require_js(absolute_url) instead.
{{ standard_header_includes }}
<!-- more html -->
{% require_js position="footer" %}
<script>
console.log("The CMS is awesome!");
</script>
{% end_require_js %}
{{ standard_footer_includes }}
<!-- other standard header html -->
<!-- more html -->
<script>
console.log("The CMS is awesome!");
</script>
<!-- other standard footer html -->
Parameter | Type | Description | Default |
---|---|---|---|
position
| String | Set the position where the inline script will be rendered. Options include: "head" and "footer". |
'footer'
|
Creates a WYSIWYG content editor.
{% rich_text "rich_text" %}
{% rich_text "left_column" label="Enter HTML here" html='<div>My rich text default content</div>' %}
Block Syntax Example:
{% widget_block rich_text "right_column" overrideable=True, label='Right Column' %}
{% widget_attribute "html" %}
<h2>Something Powerful</h2>
<h3>Tell The Reader More</h3>
<p>The headline and subheader tells us what you're offering, and the form header closes the deal. Over here you can explain why your offer is so great it's worth filling out a form for.</p>
<p>Remember:</p>
<ul>
<li>Bullets are great</li>
<li>For spelling out <a href="#">benefits</a> and</li>
<li>Turning visitors into leads.</li>
</ul>
{% end_widget_attribute %}
{% end_widget_block %}
<span id="hs_cos_wrapper_right_column" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_rich_text" style="" data-hs-cos-general-type="widget" data-hs-cos-type="rich_text">
<h2>Something Powerful</h2>
<h3>Tell The Reader More</h3>
<p>The headline and subheader tells us what you're offering, and the form header closes the deal. Over here you can explain why your offer is so great it's worth filling out a form for.</p>
<p>Remember:</p>
<ul>
<li>Bullets are great</li>
<li>For spelling out benefits and</li>
<li>Turning visitors into leads.</li>
</ul>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
html
| String | Default rich text content for module. |
<h2>Something Powerful</h2> <h3>Tell The Reader More</h3> <p>The headline and subheader tells us what you're offering, and the form header closes the deal. Over here you can explain why your offer is so great it's worth filling out a form for.</p> <p>Remember:</p> <ul> <li>Bullets are great</li> <li>For spelling out <a href="#">benefits</a> and</li> <li>Turning visitors into leads.</li> </ul>
|
{% rss_listing "rss_listing" %}
{% rss_listing "my_rss_listing" rss_url='', publish_date_text='posted at', feed_source={rss_url='', is_external=False, content_group_id='24732847'}, click_through_text='Read more', show_date=True, include_featured_image=True, overrideable=False, publish_date_format='short', show_detail=True, show_author=True, number_of_items='5', is_external=False, title='', content_group_id='24732847', label='RSS Listing', limit_to_chars='200', attribution_text='by' %}
<span id="hs_cos_wrapper_my_rss_listing" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_rss_listing" style="" data-hs-cos-general-type="widget" data-hs-cos-type="rss_listing">
<h3></h3>
<div class="hs-rss-module feedreader_box">
<div class="hs-rss-item hs-with-featured-image">
<div class="hs-rss-item-text">
<a class="hs-rss-title" href="http://www.underseaband.com/blog/city-where-stars-are-not"><span>City
Where Stars Are Not</span></a>
<div class="hs-rss-byline">by <span class="hs-rss-author">Matthew Vincenty</span>
<span class="hs-rss-posted-at">posted at</span> <span class="hs-rss-date">5/1/15 11:02 AM</span>
</div>
<div class="hs-rss-description">
<p> We are pleased to announce the release of our next single "City Where Stars Are Not"! It will be
available Tuesday May 5th and features lead vocals by bassist David Hunt. Thanks to Peter...<a
href="http://www.underseaband.com/blog/city-where-stars-are-not">Read more</a> </p>
</div>
</div>
<div class="hs-rss-item-image-wrapper">
<img class="hs-rss-featured-image" src="http://www.underseaband.com/hubfs/Blog_Images/citywherestarsarenot.png?t=1430835551915">
</div>
</div>
<div class="hs-rss-item hs-with-featured-image">
<div class="hs-rss-item-text">
<a class="hs-rss-title" href="http://www.underseaband.com/blog/loud-louder"><span>New Pedal! ChadderBox
Effects Loud Louder</span></a>
<div class="hs-rss-byline">by <span class="hs-rss-author">Corey Wade</span>
<span class="hs-rss-posted-at">posted at</span> <span class="hs-rss-date">4/27/15 10:30 AM</span>
</div>
<div class="hs-rss-description">
<p>
I have the good fortune to have recently met Chad from ChadderBox Effects. It turns out he works
part-time on the same floor in the same building where I also work part-time. When I found out
Chad...<a href="http://www.underseaband.com/blog/loud-louder">Read more</a> </p>
</div>
</div>
<div class="hs-rss-item-image-wrapper"> <img class="hs-rss-featured-image"
src="http://www.underseaband.com/hubfs/Blog_Images/10724991_612551458879970_1563949619_n.jpg?t=1430835551915">
</div>
</div>
<div class="hs-rss-item hs-with-featured-image">
<div class="hs-rss-item-text"> <a class="hs-rss-title"
href="http://www.underseaband.com/blog/introducing-ariél-torres"><span>Introducing: Ariél
Torres</span></a>
<div class="hs-rss-byline">by <span class="hs-rss-author">Corey Wade</span> <span
class="hs-rss-posted-at">posted at</span> <span class="hs-rss-date">4/24/15 10:30 AM</span>
</div>
<div class="hs-rss-description">
<p> Everyone needs to check out Boston-based visual artist Ariél Torres’ work. He was very nice to
let us use one of his pieces for “Your Teeth Shake”, and we couldn’t be more stoked about it.
Check out...<a href="http://www.underseaband.com/blog/introducing-ariél-torres">Read more</a>
</p>
</div>
</div>
<div class="hs-rss-item-image-wrapper"> <img class="hs-rss-featured-image"
src="http://www.underseaband.com/hubfs/tangledupinblue-449270-edited.jpg?t=1430835551915"> </div>
</div>
<div class="hs-rss-item hs-with-featured-image">
<div class="hs-rss-item-text">
<a class="hs-rss-title" href="http://www.underseaband.com/blog/new-pedal-fuzzrocious-rat-tail"><span>New Pedal! Fuzzrocious Rat Tail</span></a>
<div class="hs-rss-byline">by <span class="hs-rss-author">Matthew Vincenty</span> <span
class="hs-rss-posted-at">posted at</span> <span class="hs-rss-date">4/21/15 4:34 PM</span>
</div>
<div class="hs-rss-description">
<p> I found myself in the position of needing to put together a new board to fill in on guitar with
our friends Glacier. First I needed a distortion pedal that could pull of their heavier
bits so I...<a href="http://www.underseaband.com/blog/new-pedal-fuzzrocious-rat-tail">Read
more</a> </p>
</div>
</div>
<div class="hs-rss-item-image-wrapper"> <img class="hs-rss-featured-image"
src="http://www.underseaband.com/hubfs/Blog_Images/11023171_476701342477661_420938091_n.jpg?t=1430835551915">
</div>
</div>
<div class="hs-rss-item hs-with-featured-image">
<div class="hs-rss-item-text"> <a class="hs-rss-title"
href="http://www.underseaband.com/blog/using-two-amps"><span>Using two amps</span></a>
<div class="hs-rss-byline">by <span class="hs-rss-author">Matthew Vincenty</span> <span
class="hs-rss-posted-at">posted at</span> <span class="hs-rss-date">4/17/15 3:58 PM</span>
</div>
<div class="hs-rss-description">
<p> Sometimes just one amp isn't enough. Using multiple amps together can yield a sound that is more
than the sum of it's parts. Both Corey and myself have split our singal to multiple amps.
Currently...<a href="http://www.underseaband.com/blog/using-two-amps">Read more</a> </p>
</div>
</div>
<div class="hs-rss-item-image-wrapper"> <img class="hs-rss-featured-image"
src="http://www.underseaband.com/hubfs/Blog_Images/E719C0A7-6C2A-41FB-9A59-FA8236DED4A5.jpg?t=1430835551915">
</div>
</div>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
show_title
| Boolean | Shows or hides RSS feed title. |
True
|
show_date
| Boolean | Displays post date. |
True
|
show_author
| Boolean | Displays author name. |
True
|
show_detail
| Boolean | Display post summary up to number of characters set by limit_to_chars parameter. |
True
|
title
| String | Populates a heading above the RSS feed listing. | |
limit_to_chars
| Number | Maximum number of characters to display in summary. |
200
|
publish_date_format
| String | Format for the publish date. Possible values include 'short', 'medium' and 'long'. Also accepts custom formats including "MMMM d, yyyy 'at' h:mm a". |
'short'
|
attribution_text
| String | The text which attributes an author to a post. |
'by'
|
click_through_text
| String | The text which will be displayed for the click through link at the end of a post summary. |
'Read more'
|
publish_date_text
| String | The text which indicates when a post was published. |
'posted at'
|
include_featured_image
| Boolean | Displays featured image with post link for HubSpot generated RSS feeds. |
False
|
item_title_tag
| String | Specifies HTML tag of each post title. |
span
|
is_external
| Boolean | RSS feed is from an external blog. |
False
|
number_of_items
| Number | Maximum number of posts to display. |
5
|
publish_date_language
| String | Specifies the language of the publish date. |
en_US
|
rss_url
| String | The URL where the RSS feed is located. | |
content_group_id
| String | ID for blog when feed source is internal blog. | |
select_blog
| String | Can be used to select an internal HubSpot blog feed. |
default
|
feed_source
| String | Set source for RSS feed. When internal, general format is {rss_url='', is_external=False, content_group_id='2502431580'}. When external, general format is {rss_url='http://blog.hubspot.com/marketing/rss.xml', is_external=True}. | |
tag_id
| Number | ID for tag when feed source is internal blog. |
Generates an <h1>
header and <p>
subheader.
{% section_header "section_header" %}
{% section_header "my_section_header" subheader='A more subdued subheader', header='A clear and bold header', label='Section Header' %}
<span id="hs_cos_wrapper_my_section_header" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_section_header" style="" data-hs-cos-general-type="widget" data-hs-cos-type="section_header">
<div class="page-header section-header">
<h1>A clear and bold header</h1>
<p class="secondary-header"><span id="hs_cos_wrapper_subheader" class="section-subheader">A more subdued subheader</span></p>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
header
| String | Text to display in header. |
'A clear and bold header'
|
subheader
| String | Text to display in subheader. |
'A more subdued subheader'
|
Simple menus allow you to create basic navigation menus that can be modified at the page level. Unlike regular menu modules, simple menus are not managed from the Navigation screen in Website Settings, but rather from the template and page editors. You can use block syntax to set up a default menu tree.
{% simple_menu "simple_menu" %}
{% simple_menu "my_simple_menu" orientation='horizontal', label='Simple Menu' %}
Block Syntax Example:
{% widget_block simple_menu "block_simple_menu" overrideable=True, orientation='horizontal', label='Simple Menu' %}
{% widget_attribute "menu_tree" is_json=True %}[{"contentType": null, "subCategory": null, "pageLinkName": null, "pageLinkId": null, "isPublished": false, "categoryId": null, "linkParams": null, "linkLabel": "Home", "linkTarget": null, "linkUrl": "http://www.hubspot.com", "children": [], "isDeleted": false}, {"contentType": null, "subCategory": null, "pageLinkName": null, "pageLinkId": null, "isPublished": false, "categoryId": null, "linkParams": null, "linkLabel": "About", "linkTarget": null, "linkUrl": "http://www.hubspot.com/internet-marketing-company", "children": [{"contentType": null, "subCategory": null, "pageLinkName": null, "linkUrl": "http://www.hubspot.com/company/management", "isPublished": false, "children": [], "linkParams": null, "linkLabel": "Our Team", "linkTarget": null, "pageLinkId": null, "categoryId": null, "isDeleted": false}], "isDeleted": false}, {"contentType": null, "subCategory": null, "pageLinkName": null, "pageLinkId": null, "isPublished": false, "categoryId": null, "linkParams": null, "linkLabel": "Pricing", "linkTarget": null, "linkUrl": "http://www.hubspot.com/pricing", "children": [], "isDeleted": false}]{% end_widget_attribute %}
{% end_widget_block %}
<span id="hs_cos_wrapper_my_simple_menu" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_simple_menu" style="" data-hs-cos-general-type="widget" data-hs-cos-type="simple_menu">
<ul></ul>
</span>
<span id="hs_cos_wrapper_block_simple_menu" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_simple_menu"
style="" data-hs-cos-general-type="widget" data-hs-cos-type="simple_menu">
<div id="hs_menu_wrapper_module_143093417497114626" class="hs-menu-wrapper active-branch flyouts hs-menu-flow-horizontal" data-sitemap-name="">
<ul>
<li class="hs-menu-item hs-menu-depth-1"><a href="//www.hubspot.com" target="_self">Home</a></li>
<li class="hs-menu-item hs-menu-depth-1 hs-item-has-children"><a href="//www.hubspot.com/internet-marketing-company" target="_self">About</a>
<ul class="hs-menu-children-wrapper">
<li class="hs-menu-item hs-menu-depth-2"><a href="//www.hubspot.com/company/management" target="_self">Our Team</a></li>
</ul>
</li>
<li class="hs-menu-item hs-menu-depth-1"><a href="//www.hubspot.com/pricing" target="_self">Pricing</a></li>
</ul>
</div>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
orientation
| Enumeration | Defines classes of menu markup to allow to style the orientation of menu items on the page. Possible values include 'horizontal' and 'vertical'. |
'horizontal'
|
menu_tree
| JSON | Menu structure including page link names and target URLs. |
[]
|
Social sharing tags generate social media icons that can be used to share a particular page. This module can be used with block syntax to customize the icon images and more.
{% social_sharing "social_sharing" %}
{% social_sharing "my_social_sharing" use_page_url=True %}
Block Syntax Example:
{% widget_block social_sharing "my_social_sharing" label='Social Sharing', use_page_url=True, overrideable=True %}
{% widget_attribute "pinterest" is_json=True %}{"custom_link_format": "", "pinterest_media": "http://cdn1.hubspot.com/hub/158015/305390_10100548508246879_837195_59275782_6882128_n.jpg", "enabled": true, "network": "pinterest", "img_src": "https://static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png"}{% end_widget_attribute %}
{% widget_attribute "twitter" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "twitter", "img_src": "https://static.hubspot.com/final/img/common/icons/social/twitter-24x24.png"}{% end_widget_attribute %}
{% widget_attribute "linkedin" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "linkedin", "img_src": "https://static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png"}{% end_widget_attribute %}
{% widget_attribute "facebook" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "facebook", "img_src": "https://static.hubspot.com/final/img/common/icons/social/facebook-24x24.png"}{% end_widget_attribute %}
{% widget_attribute "email" is_json=True %}{"custom_link_format": "", "enabled": true, "network": "email", "img_src": "https://static.hubspot.com/final/img/common/icons/social/email-24x24.png"}{% end_widget_attribute %}
{% end_widget_block %}
<span id="hs_cos_wrapper_social_sharing" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_social_sharing" style="" data-hs-cos-general-type="widget" data-hs-cos-type="social_sharing">
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Dfacebook" target="_blank" style="width:24px;border-width:0px;border:0px;">
<img src="//static.hubspot.com/final/img/common/icons/social/facebook-24x24.png?width=24" class="hs-image-widget hs-image-social-sharing-24" style="max-height:24px;max-width:24px;border-width:0px;border:0px;" width="24" hspace="0" alt="Share on Facebook">
</a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Dlinkedin" target="_blank" style="width:24px;border-width:0px;border:0px;">
<img src="//static.hubspot.com/final/img/common/icons/social/linkedin-24x24.png?width=24" class="hs-image-widget hs-image-social-sharing-24" style="max-height:24px;max-width:24px;border-width:0px;border:0px;" width="24" hspace="0" alt="Share on LinkedIn">
</a>
<a href="https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Dtwitter&url=http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Dtwitter&source=tweetbutton&text=" target="_blank" style="width:24px;border-width:0px;border:0px;">
<img src="//static.hubspot.com/final/img/common/icons/social/twitter-24x24.png?width=24" class="hs-image-widget hs-image-social-sharing-24" style="max-height:24px;max-width:24px;border-width:0px;border:0px;" width="24" hspace="0" alt="Share on Twitter">
</a>
<a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Dpinterest&media=http%3A%2F%2Fcdn1.hubspot.com%2Fhub%2F158015%2F305390_10100548508246879_837195_59275782_6882128_n.jpg" target="_blank" style="width:24px;border-width:0px;border:0px;">
<img src="//static.hubspot.com/final/img/common/icons/social/pinterest-24x24.png?width=24" class="hs-image-widget hs-image-social-sharing-24" style="max-height:24px;max-width:24px;border-width:0px;border:0px;" width="24" hspace="0" alt="Share on Pinterest"></a>
<a href="mailto:?subject=Check out http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Demail &body=Check out http%3A%2F%2Fexample.com%2Fmy-page%3Futm_medium%3Dsocial%26utm_source%3Demail" target="_blank" style="width:24px;border-width:0px;border:0px;">
<img src="//static.hubspot.com/final/img/common/icons/social/email-24x24.png?width=24" class="hs-image-widget hs-image-social-sharing-24" style="max-height:24px;max-width:24px;border-width:0px;border:0px;" width="24" hspace="0" alt="Share on Email">
</a>
</span>
Parameter | Type | Description | Default |
---|---|---|---|
use_page_url
| Boolean | If true, the module shares the URL of the page by default. |
True
|
link
| String | Specifies a different URL to share, if use_page_url is false. | |
pinterest
| JSON | Parameters for Pinterest link format and icon image source. |
See block syntax example, above
|
twitter
| JSON | Parameters for Twitter link format and icon image source. |
See block syntax example, above
|
linked_in
| JSON | Parameters for LinkedIn link format and icon image source. |
See block syntax example, above
|
facebook
| JSON | Parameters for Facebook link format and icon image source. |
See block syntax example, above
|
email
| JSON | Parameters for email sharing link format and icon image source. |
See block syntax example, above
|
A spacer tag generates an empty span tag. This tag can be styled to act as a spacer. In drag and drop layouts, the spacer module is wrapped in a container with a class of span1-span12 to determine how much space the module should take up in the twelve column responsive grid.
{% space "space" %}
{% space "spacer" label='Horizontal Spacer' %}
<span id="hs_cos_wrapper_module_spacer" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_space" style="" data-hs-cos-general-type="widget" data-hs-cos-type="space"></span>
Creates a single line of text. This tag can be useful to be mixed into your markup, when used in conjunction with the no_wrapper=True
parameter. For example, if you wanted your end users to be able to define a destination of a predefined anchor, you could populate the href
with a text module with no_wrapper=True
.
{% text "text" %}
{% text "simple_text_field" label="Enter text here", value="This is the default value for this text field" %}
<span id="hs_cos_wrapper_simple_text_field" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_text" style="" data-hs-cos-general-type="widget" data-hs-cos-type="text">This is the default value for this text field</span>
Parameter | Type | Description | Default |
---|---|---|---|
value
| String | Sets the default text of the single line text field. |
A textarea is similar to a text module in that it allows users to enter plain text, but it gives them a larger area to work in the content editor. This module does not support HTML. If you want to use directly within a predefined wrapping tag, add the no_wrapper=true
parameter.
{% textarea "my_textarea" %}
{% textarea "my_textarea" label='Enter plain text block', value='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean a urna quis lacus vehicula rutrum.', no_wrapper=True %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean a urna quis lacus vehicula rutrum.
Parameter | Type | Description | Default |
---|---|---|---|
value
| String | Sets the default text of the textarea. |
Render a Vidyard video player for a File Manager video which is selected "Allow embedding, sharing, and tracking".
{% video_player "embed_player" %}
{% video_player "embed_player" overrideable=False, type='scriptV4', hide_playlist=True, viral_sharing=False, embed_button=False, width='600', height='375', player_id='6178121750', style='', conversion_asset='{"type":"FORM","id":"9a77c63f-bee6-4ff8-9202-b0af020ea4b2","position":"POST"}' %}
Parameter | Type | Description | Default |
---|---|---|---|
hide_playlist
| Boolean | Hide the video playlist. |
True
|
playlist_color
| String | A HEX color value for the playlist. | |
play_button_color
| String | A HEX color value for the play and pause buttons. |
#2A2A2A
|
embed_button
| Boolean | Display embed button on the player |
False
|
viral_sharing
| Boolean | Display the social networks sharing button on the player. |
False
|
width
| Number | Width of the embedded video player. |
Auto
|
height
| Number | Height of the embedded video player. |
Auto
|
player_id
| Number | The | |
style
| String | Additional style for player. | |
conversion_asset
| JSON | Event setting for player. Can render CTA or Form before or after video plays. This parameter takes a JSON object with three parameters: type (FORM or CTA), id (The guid of the type object), position (POST or PRE). |
See above example
|
Social sharing