CMS Development

Fred_erick
Participante

Flag one blog post for big banner?

Hi,

 

is it possible to Flag a specific blog post, to be displayed (headline, link and feature image) in a header banner?

 

thx

0 Me gusta
1 Respuesta 1
jzilch
HubSpot Employee
HubSpot Employee

Flag one blog post for big banner?

Hi, 

 

While we do not have this functionality native to the HubSpot blog you should be able to use a custom module and blog_post_by_id HubL function. You can read more about that here. https://designers.hubspot.com/en/docs/hubl/hubl-supported-functions. 

 

If you build out a custom module you could pass the function an ID of the specific blog post that you want to display as your "featured" and then that function will return the data for your featured post. 

 

Then in your custom module you can render out the absolute_url, title and featured_image as normal with HubL. 

 

Let me know if that helps point you in the right direction