CMS Development

SteveHTM
Top colaborador(a) | Parceiro
Top colaborador(a) | Parceiro

custom_widget usage

resolver

I've created a custom module called "Event Details Entry" which works pretty well when "dragged" into a custom blog post template.

Screen Shot 2019-03-22 at 1.46.05 PM.pngBut there are limitations on getting access to the data fields when displaying the posts. So I started exploring the use of the custom_widget tag as documented  https://designers.hubspot.com/docs/hubl/hubl-supported-tags.

{% custom_widget "Event Data" widget_name= 'Event Details Entry' %}

Basically - it does not work. The content editor flags up errors about finding the module name. I've scoured the forums here and found multiple posts that have different formats for invoking this tag and a related "module" tag. Very confusing for a newbie. So is the documentation fundamentally wrong or am I missing something here? 

 

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
1 Solução aceita
Jsum
Solução
Conselheiro(a) de destaque

custom_widget usage

resolver

@ckrakowski ,

 

here is a snap shot of the custom image tag requirements:

HubL supported tags (1).png

In my experience, the widget_name has to match the custom module name exactly. 

 

You can get the "snippet" for any module from the custom module editor, left sidebar, at the bottom:


Design Manager   HubSpot (2).png

 

Does that help?

Exibir solução no post original

0 Avaliação positiva
8 Respostas 8
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

custom_widget usage

resolver

@SteveHTM , could you post more code?  i dont feel like i am getting the full picture

SteveHTM
Top colaborador(a) | Parceiro
Top colaborador(a) | Parceiro

custom_widget usage

resolver

Well, I'm not sure what extra code woudl be helpful here. I'm trying to reference the custom module in the <additional head markup> of a blog page template. All other tags I have used in this markup work just fine, and I can see the data they contain in the blog post page via "widget_data" dict references. But when I try and add the custom module I see:

Screen Shot 2019-03-25 at 9.09.11 AM.png 

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
ckrakowski
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

custom_widget usage

resolver

I'm having this same issue "Unable to find custom widget ..." 

Did you find the solution for this? What is the correct formatting and/or does that Custom Module have to be in a certain folder? 

Thanks!

0 Avaliação positiva
Jsum
Solução
Conselheiro(a) de destaque

custom_widget usage

resolver

@ckrakowski ,

 

here is a snap shot of the custom image tag requirements:

HubL supported tags (1).png

In my experience, the widget_name has to match the custom module name exactly. 

 

You can get the "snippet" for any module from the custom module editor, left sidebar, at the bottom:


Design Manager   HubSpot (2).png

 

Does that help?

0 Avaliação positiva
SteveHTM
Top colaborador(a) | Parceiro
Top colaborador(a) | Parceiro

custom_widget usage

resolver

Basically, I can't see how this response - referencing the use of a {% module %} tag - can be accepted as a solution for inadeqaute documentation and/or support on a potentially related but different {% custom_widget %} tag. Is one of these tags deprecated in some way?

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
0 Avaliação positiva
ckrakowski
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

custom_widget usage

resolver

The module name is: Email_Article_Full_Width_Image

 

This is what I have in the template:

{% custom_widget "news_article" widget_name="Email_Article_Full_Width_Image", label="Email Article - Full Width Image" %}


And this is what my snippet is:

{% module "module_156106020113380" path="/Corp_Conc_May2018 Theme/Custom Modules/Email_Article_Full_Width_Image" %}

 

I get the error: Warning:168:13Unable to find custom widget Email_Article_Full_Width_Image

 

Not sure what I'm doing wrong 😞 Everything matches. Do I use the snippet instead of the Custom_widget HubL?

 

Thanks so much for your help!

0 Avaliação positiva
Jsum
Conselheiro(a) de destaque

custom_widget usage

resolver

@ckrakowski  I would try the snippet and see. That should work better.

0 Avaliação positiva
ckrakowski
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

custom_widget usage

resolver

@Jsum you are a GENIUS! That works! Thank you so much!