CMS Development

kyl3
Contributor

Attaching templates to pages

SOLVE

I've created numerous templates, changed names of the files, cloned, made a new one etc and I can't seem to attach any of them to pages. I refresh but they never show up, am I missing something? Is there another way to attach a template to a page?

0 Upvotes
2 Accepted solutions
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Attaching templates to pages

SOLVE

Hey @kyl3 

I was able to recreate this issue.

 

Publish page with Template A

Create Temlplate B

Edit > Settings > Advanced > Template > Use different template > *unable to locate the newly published Template B from the modal*

 

This may very well be a bug.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev

View solution in original post

piersg
Solution
Key Advisor

Attaching templates to pages

SOLVE

If you're manually adding modules to an HTML tempalte you can use the no_wrapper attribute e.g.

{% module "[name]" path="[path]", label="[label]" no_wrapper=true %}

 

View solution in original post

9 Replies 9
dennisedson
HubSpot Product Team
HubSpot Product Team

Attaching templates to pages

SOLVE

I will check this out and advise the team if it is a bug

0 Upvotes
kyl3
Contributor

Attaching templates to pages

SOLVE

While you're at it, allow modules to be rendered without a wrapper element. Thanks

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Attaching templates to pages

SOLVE

It's not Christmas, yet 😉

Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Attaching templates to pages

SOLVE
kyl3
Contributor

Attaching templates to pages

SOLVE

Idea? This is a 5 minute fix, it's a bug IMO...the wrapper issue. Something so simple in basically any regularly maitained language. I'm new to hubl and man, hope I don't have to be here much.

0 Upvotes
piersg
Solution
Key Advisor

Attaching templates to pages

SOLVE

If you're manually adding modules to an HTML tempalte you can use the no_wrapper attribute e.g.

{% module "[name]" path="[path]", label="[label]" no_wrapper=true %}

 

piersg
Key Advisor

Attaching templates to pages

SOLVE

Hi @kyl3 the way to change which template a page is using is: Click edit on the relevant page > Settings > Advanced options > Template.

kyl3
Contributor

Attaching templates to pages

SOLVE

I know, that doesn't work. When you try to attach templates to various pages they all don't show up. The template I'm trying to attach is similar to the rest, for pages, shouldn't be restricted in any way. I feel this is a Hubspot bug. If I create a new page sometimes templates show up sometimes not. FRUSTRATING!!!!!!!!!

0 Upvotes
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Attaching templates to pages

SOLVE

Hey @kyl3 

I was able to recreate this issue.

 

Publish page with Template A

Create Temlplate B

Edit > Settings > Advanced > Template > Use different template > *unable to locate the newly published Template B from the modal*

 

This may very well be a bug.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev