CMS Development

kyKaq
Miembro

Query about combination of html and hubl in id

resolver

I saw a div id that combines both HTML and hubl inside a free module that provided by Hubspot ( Parallax_Hero_Banner)

id="hs-hero-{{ name }}

 

I wonder what id the {{name}} in hubl.

And

Why does it need to combine both HTML and hubl?

0 Me gusta
1 Soluciones aceptada
Chris-M
Solución
Colaborador líder

Query about combination of html and hubl in id

resolver

Welcome to the community @kyKaq!

 

the {{ name }} variable prints out the unique widget ID in the frontend. It will be used to make specific calls to this specific widget. Basicly if you have multiple "Parallax Hero Banner" on one page, each of them is going to have it unique widget ID, in this case to use seperate stylings (overlay color, overlay opacity and text color)

 

I hope this helps you.

 

- Chris

 

 

Ver la solución en mensaje original publicado

1 Respuesta 1
Chris-M
Solución
Colaborador líder

Query about combination of html and hubl in id

resolver

Welcome to the community @kyKaq!

 

the {{ name }} variable prints out the unique widget ID in the frontend. It will be used to make specific calls to this specific widget. Basicly if you have multiple "Parallax Hero Banner" on one page, each of them is going to have it unique widget ID, in this case to use seperate stylings (overlay color, overlay opacity and text color)

 

I hope this helps you.

 

- Chris