CMS Development

RitaM
Membre

Problem implementing Landing Page Template

Résolue

Hi everyone!

 

I contacted Hubspot support but they weren't able to help me with this.

My development team has created a HTML +HubL page in the designer tool. It looks amazing in the preview, but after they publish it, it is nowhere to be found... We've created previous HTML pages and they show up in templates when trying to add them into the Landing Page, but not this one. Where could this be? Or how can I implement it?

 

Thank you in advance,

 

Best regards,

 

Rita

0 Votes
1 Solution acceptée
Anton
Solution
Leader d'opinion | Partenaire solutions
Leader d'opinion | Partenaire solutions

Problem implementing Landing Page Template

Résolue

Hi @RitaM

every template requires the template informations like

<!--
templateType: page
isAvailableForNewContent: true
label: YOUR TEMPLATE NAME
-->

 at the very top. 

 

If "isAvailableForNewContent" is set to "false" then it won't show up in your template selection. 

 

Also check the label - if the dev-team cloned it from an existing templte it might have the same name

 

best,

Anton

Anton Bujanowski Signature

Voir la solution dans l'envoi d'origine

6 Réponses
04262
Participant

Problem implementing Landing Page Template

Résolue

I've set this information and the template is still not showing in the template section 😞 

Any clue?

<!--
templateType: page
isAvailableForNewContent: true
label: Elements - Resources J
-->

 

0 Votes
YQ
Membre

Problem implementing Landing Page Template

Résolue

Hey,

 

Not sure how tech savvy you are, but it's worth looking at the network requests in the browser.

 

I was having the same problem: my template was not appearing in the list, so I could not choose it. I could create a new landing page from the design manager. But I wanted to run an AB test with the new template and I therefore needed to be able to select it from within the Landing Page / Edit Page / Settings / Template UI.

I looked at the network requests in the browser and this was the network request to retrieve the list of theme templates:

 

https://app.hubspot.com/api/content/creator/search/v1/search?sorting=ALPHABETICAL&clienttimeout=30000&templateTypeIds=4&hasDndArea=true&themePath=MY_THEME_PATH&availableForNewContent=true&hs_static_app=active-theme-content-creator-ui&hs_static_app_version=1.25463&portalId=123456789

 

I then put this into postman and tested the API call. Sure enough, it returned no results.

 

But when I removed the "hasDndArea=true" parameter... it found my template!

 

So in my case, it was not showing templates that do not have a {% dnd_area %}. I added one to my template and it worked fine.

 

0 Votes
04262
Participant

Problem implementing Landing Page Template

Résolue

Wow, this is gold!! Thank you for your answer. 
I had to find a workaround last time, but will definitively try this trick when it happens again. 

0 Votes
YQ
Membre

Problem implementing Landing Page Template

Résolue

No worries. I'm not sure the logic behind the filters that the Hubspot UI puts on the templates...

I'm now trying to change the template for another landing page and it's put a "codedNoDndOnly=true" parameter in and now my template isn't showing again. Lol. 

 

At least I can see what is going on though.

0 Votes
RitaM
Membre

Problem implementing Landing Page Template

Résolue

Hi @Anton ,

 

Thank you so much for your help! This worked perfectly!

 

Best regards,

 

Rita

0 Votes
Anton
Solution
Leader d'opinion | Partenaire solutions
Leader d'opinion | Partenaire solutions

Problem implementing Landing Page Template

Résolue

Hi @RitaM

every template requires the template informations like

<!--
templateType: page
isAvailableForNewContent: true
label: YOUR TEMPLATE NAME
-->

 at the very top. 

 

If "isAvailableForNewContent" is set to "false" then it won't show up in your template selection. 

 

Also check the label - if the dev-team cloned it from an existing templte it might have the same name

 

best,

Anton

Anton Bujanowski Signature