Documentation caveats and related frustration

Hey HubSpot team!

I don’t want this post to be a rant. I’d just like to share some of my journey developing themes on HubSpot CRM.

First, I’d like to say I am totally amazed by the awesome work that has been done to make developing for HubSpot a great experience. The local dev setup + GitHub deployment action is very much appreciated. Code snippets you can copy right from the design manager, how amazing!

But…

A LOT of times I find myself digging to solve trivial issues that are not mentioned anywhere in the documentation (which is mostly good, btw, despite lacking some crucial information sometimes). This is starting to get very frustrating, as I can hardly complete a module or template without hitting some documentation hole that I have to fill out in a cumbersome hacky way.

One simple example will illustrate this claim :

(I was seemingly not the only one to struggle with this specific problem : https://community.hubspot.com/t5/HubSpot-Ideas/Edit-play-button-color-on-videos/idi-p/758020)

The default video module have an option to choose the play button color when you choose the “HubSpot video” type. Very nice, thanks!

The same thing is possible if a video is included inside a rich text module with a simple “color” option on the video. Perfect!

What about a video field inside a custom module?

There should be a setting in the field options, right? Nope.

Ok then, let’s try a style property… But where should I bind it? Maybe some custom property in CSS? Not possible since the video is inside an iframe.

So is there a property I can set on the video field instead? In fact, there is, but it’s just like it does not exist.

In the doc (Module and theme fields - HubSpot docs) the options available for a video field are :

  • player_id
  • height
  • width
  • size_type
  • conversion_asset
  • loop_video
  • mute_by_default
  • autoplay
  • hide_control
  • show_advanced_options

(Which are listed under the “default” field option, btw, except for show_advanced_options. This is a little confusing also, but I can forgive this one as it’s easy to figure out.)

So how did I finally figure out how to make that button pretty then???

At first, I tried to copy-paste the default video module code :

{% dnd_module
 path="@hubspot/video",
 width=4,
 style_options={
 "oembed_thumbnail_play_button_color": {
 "color": "#e22752",
 "opacity": 100
 }
 } %}
{% end_dnd_module %}

It did not work in my custom module. :disappointed_face:

Then I tried throwing off my laptop off a cliff, but it did not solve my issue either.

I then tried to copy-paste a rich text module code in which I had put a prettily styled video and it worked! Here is the code I got :

{% dnd_module
path="@hubspot/rich_text",
offset=0,
width=12
%}
{% module_attribute "html" %}
 {% video_player "embed_player" overrideable=False, type='hsvideo2', hide_playlist=True, viral_sharing=False, embed_button=False, autoplay=False, hidden_controls=False, loop=False, muted=False, full_width=False, width='1440', height='1080', player_id='81111303929', style='', color='e22752', play_button_color='e22752' %}
 <p> </p>{{ include_custom_fonts({"Proxima Nova":["200","300","400","500","Regular","600","700","800"]}) }}
{% end_module_attribute %}
{% end_dnd_module %}

The is actually a play_button_color=‘e22752’ property on a video field!

I mean, this is really not something essential, but it bears witness of the current state of HubSpot documentation. Since it’s a completely non-existent information in the doc or forum, it was really frustrating to figure out.

I feel like there are a lot of holes in HubSpot documentation that degrade a developer experience that would be very nice if it was not from these lack of simple keywords.

Anyway, have a good day, colleagues! I guess it’s not easy to maintain such a huge ecosystem.

See also :

The time when I was not able to make an embed video take a default URL :

https://community.hubspot.com/t5/CMS-Development/Default-Video-Module-Parameters/m-p/870920#M36471

(I gave up and used HubSpot video, which is better anyway)

The time when I had a hard time to implement a custom font (and was not the only one) :

https://community.hubspot.com/t5/CMS-Development/Configuring-a-Custom-Font-to-set-in-Theme-Settings/m-p/857615#M36095

(I guessed the word “CUSTOM” for my “font_set” property lol)

Hi, @lolcabanon Thanks for your feedback. I shared it with my internal resources.

While I cannot promise a specific response to your post, I want you to know your feedback was received and didn’t just vanish into the void.

Please keep sharing your honest feedback, as it’s important and valuable for these teams to hear from users about their frustrations.

Best,

Jaycee

Hey Jaycee! No problem, I did not expect a specific answer.

Thanks for taking the time to reply!

:slightly_smiling_face: