CMS Development

jmclaren
HubSpot Employee
HubSpot Employee

Module fields can be nested 4 levels deep, and new require_head tag

You are now able to create modules that have fields that have 4 levels of depth. This is an increase from the previous 3 levels. Provide content creators easier interfaces by using more nested field groups. We're also adding a new require_head tag which operates similarly to require_css.

What's happening?

Custom module field groups, enable you to group related fields to provide an easier experience for content creators. We're changing how many levels field groups you can have to 3 groups, meaning 4 levels of fields.

 

This will be useful for complicated modules like custom slideshows, galleries, and modules with animations, where you might want to have a lot of depth to the controls, and nesting the fields makes the interface easier to understand.

We're also adding the require_head tag to HubL. This tag functions similarly to the require_css tag in that it moves the code inside it to the head of the page. require_head is intended for placing things that need to be in the head but are not JavaScript or CSS. An example where you may want to do this might be for special meta tags associated with or to be configured by a module.

When is this happening?

This functionality has already rolled out to all accounts.

Questions or comments? please join the discussion below.

Jon McLaren

Sr. CMS Developer Advocate

Get started developing on the HubSpot CMS Developer Changelog
How to optimize your CMS Hub site for speed

If my reply answered your question, please mark it as a solution, to make it easier for others to find.

0 Replies 0

0 Replies

No replies on this post just yet

No one has replied to this post quite yet. Check back soon to see if someone has a solution, or submit your own reply if you know how to help! Karma is real.

Reply to post

Need help replying? Check out our Community Guidelines