CMS Development

Stephanie-OG
Key Advisor

Custom Module Template Usage Snippet

SOLVE

Hey all!

 

I created a custom module I'm trying to use in the blog listing code and I should be able to copy the snippet and add it there: 

 

template-snippet.png

 

But when I do so literally nothing appears: 

 

search-tet.png

 

search-test2.png

 

Is this not supported in the new Design Manager?

 

Thanks!

 


Stephanie O'Gay GarciaHubSpot Design / Development

Website | Contact

 

1 Accepted solution
shawnwinston
Solution
Participant | Partner
Participant | Partner

Custom Module Template Usage Snippet

SOLVE

I was having this issue and the solution was to add 

parmeterBoolean=True

to my custom snippet, so the snippet went from 

{% module "module_15426575971951522" module_id="4323014" label="Floating Social" %}

to 

{% module "module_15426575971951522" module_id="4323014" parmeterBoolean=True label="Floating Social" %}

 

View solution in original post

0 Upvotes
4 Replies 4
dennisedson
HubSpot Product Team
HubSpot Product Team

Custom Module Template Usage Snippet

SOLVE

@Stephanie-OG, if @shawnwinston's answer didnt help, silly question, but did you check blog when asked "where would you like to use this module?"

0 Upvotes
Stephanie-OG
Key Advisor

Custom Module Template Usage Snippet

SOLVE

Thank you both for your replies! 

 

I'm no longer working on that project (I ended up just adding the HTML directly instead of adding the custom module), but I have a copy of the blog template and it still won't work both ensuring "Blog" is checked on the custom module and using parameterBoolean=True Smiley Sad

 

However,just using the embed code

 

{% module "module_154272758388739" module_id="4331657" label="Embed Module Test" %}

did work on another blog template but not that one so I'm wondering if there's something buggy about that particular template?

 

 


Stephanie O'Gay GarciaHubSpot Design / Development

Website | Contact

 

If this helped, please mark it as the solution to your question, thanks!

0 Upvotes
shawnwinston
Solution
Participant | Partner
Participant | Partner

Custom Module Template Usage Snippet

SOLVE

I was having this issue and the solution was to add 

parmeterBoolean=True

to my custom snippet, so the snippet went from 

{% module "module_15426575971951522" module_id="4323014" label="Floating Social" %}

to 

{% module "module_15426575971951522" module_id="4323014" parmeterBoolean=True label="Floating Social" %}

 

0 Upvotes
Anton
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Custom Module Template Usage Snippet

SOLVE

Hi @Stephanie-OG

 

I've never had this kind of issue.

Did you wrote the module by yourself or just "modified an existing one"? 

I've never seen the 

{# COMMENT 

in a HTML file. Maybe this is the issue because the "set" from the comment in line 12 is recognized as a Hubl tag.

 

Have you tried to

- delete all the comments

- replace 

{# COMMENT #}

with

<!-- COMMENT -->

?

 

 

regards,

Anotn

Anton Bujanowski Signature