Default Video Module Parameters

Hi fam, I have a simple question but for some reason I am not able to get this right. So, I have created dnd section that has a dnd module as it’s child. I am trying to get the hubspot default video module to have a embed URL that has its emebed url parameter by default, but I am unable to get the video url field populated already. I went ahead to the default module page:

in order to see what parameters the default video take, and I think that I need to pass the embed_field parameter in order to get the url link in the field but I can’t get it to work. I have tried something like this but no luck:
{# Info Section #}
{% dnd_section
vertical_alignment=‘MIDDLE’
%}
{% dnd_module
path=“@hubspot/video”,
embed_field= “https://youtu.be/5DE8wCpJ018 %}
{% end_dnd_module %}
{% end_dnd_section %}
Maybe the embed_field needs to be an object and have an oembed_url property that equals the source. But I am confused about how I can add that. I wonder if we have a doc page about adding parameters to default video modules.

Thank you in advance.

Hi @imxande,

I see inside your code there is a space between embed_field= and your first double quote. Try to remove it.
Also try adding all aditional information like following:

{% dnd_module 
 "video" 
 path="@hubspot/video"
 video_type="embed"
 embed_field="https://youtu.be/5DE8wCpJ018"
%}

Hey thank you so much for the solution. I actually added more properties to the embed_field as you pointed out and it works, the video URL shows as soon as I create the template. YOU ROCK FRIEND!!!

Hey @imxande !

Could you paste your working code here for me? I can’t figure this out… Here’s my code :

{% dnd_module "video"path="@hubspot/video",offset=0,width=6,video_type="embed",embed_field="https://youtu.be/blablabla" %}{% end_dnd_module %}

It is not showing the default value when I create a page from my template.

I also tried multiple variations, which are not working :

{% dnd_module "video"path="@hubspot/video",offset=0,width=6,video_type="embed",embed_field={ video: "https://youtu.be/blablabla"} %}{% end_dnd_module %}

{% dnd_module "video"path="@hubspot/video",offset=0,width=6,video_type="embed",embed_field="oembed",video="https://youtu.be/blablabla" %}{% end_dnd_module %}

Thanks! :slightly_smiling_face:

Hi @lolcabanon,

Do you use the HubSpot Developers Chrome extention?

When creating templates it’s easy to create templates.

If you don’t know how to use it, on the YouTube channel HubSpot Developers there is a video tutorial about ‘How to Enable Developer Mode in HubSpot’s CMS Hub Page editor’.

HubSpot also provides documentation about it how to copy hubl sections code.

Where do you even search for these stuff, there’s no place that I’ve found that I can see a clear description as to how to usea a dnd_module, like I’m constantly trying to figure out what to do since the docs seems so vague.

What am I missing? and how did you manage to do this, since I can’t replicate it.

Thanks for your time

Hi @GooseMan,

You can combine the documentation for it and also use some logic using the designer tools when copy a module into a custom module.

You can check out dnd_modules documentation to begin with.

Also passing fields that have dnd associated parameters can help.