CMS Development

kyKaq
Mitglied

Query about combination of html and hubl in id

lösung

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 Upvotes
1 Akzeptierte Lösung
Chris-M
Lösung
Stratege/Strategin

Query about combination of html and hubl in id

lösung

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

 

 

Lösung in ursprünglichem Beitrag anzeigen

1 Antwort
Chris-M
Lösung
Stratege/Strategin

Query about combination of html and hubl in id

lösung

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