I’m trying to figure out how to make a custom module in HubSpot that works like a container for other modules.
Basically I want to create something similar to how the Flexible column module works, but with my own custom styling and structure. The idea is to have a wrapper that can hold multiple built-in HubSpot modules inside it.
Is there a way to build a custom module that can act as a container and allow users to drop other HubSpot modules into it? I need this for a landing page I’m working on.
Nope, HubSpot doesn’t support true container modules that hold other existing modules. I hit this same wall about six months ago building custom layouts for a client’s product pages. The platform just isn’t built for dynamic module nesting like that. Here’s what worked for me: I ditched the wrapper idea and built one comprehensive module with multiple repeater groups instead. Rather than dropping separate text and image modules into a container, I created repeater fields within a single module that handled text blocks, images, buttons - everything. Takes longer upfront, but you get complete control over HTML structure and styling. It feels pretty similar to dropping modules in, just through the module editor instead of the page editor. Your content team will need to learn a different workflow, but the design flexibility was totally worth it for us.
totally agree! hubspot’s limitations can be super frustraiting. tried the flexible columns, but yeah, lacks flexibility. best bet might be using custom CSS or thinking outside the box. good luck with your lading page!
Nope, HubSpot doesn’t let you create wrapper modules that hold other modules inside them. The platform just wasn’t built for that kind of nested setup. I hit this same wall when building templates for a client who wanted custom section layouts. Those flexible columns you mentioned? That’s HubSpot’s workaround, but it’s pretty limited for styling like you found out. Your best bet is customizing the flexible column module with CSS and HubL. You can override most of the default styles to make it look however you want, though you’re stuck with their HTML structure underneath. Or build one big custom module with repeater fields for different content sections. More work upfront, but you get full control over everything.
Been dealing with this exact limitation for years at my company. HubSpot’s architecture just doesn’t allow true wrapper modules - their system’s too rigid.
Here’s what I do instead of fighting it.
I pull content data from HubSpot modules through their API and reconstruct it outside their system. Your team still creates content using familiar HubSpot modules, but the output gets processed and rebuilt with whatever HTML structure you need.
So they might create a text module and image module in HubSpot, but my automation grabs that data and wraps it in custom sections like your example. Clean HTML, custom styling, no HubSpot restrictions.
Content creators never know the difference. They work in HubSpot like always. But the final page renders with proper semantic markup and whatever container structure makes sense.
This beats repeater fields because you keep the module editing experience everyone knows. And it beats CSS hacks because you get actual control over the HTML structure.
Latenode handles the HubSpot API integration and content transformation really well. Sets up the whole pipeline without custom coding.
HubSpot’s native modules are pretty limited for custom containers. You can’t build true wrapper modules that accept other modules as children - their standard approach just doesn’t support it.
Closest you’ll get is repeater fields or drag-and-drop areas, but those are restricted and won’t give you clean container structure.
I hit this same wall building landing pages for marketing campaigns. Every workaround was messy and never gave me proper control.
What fixed it for me was automation that pulls content from HubSpot and rebuilds it in a flexible system. Extract the module data, restructure it however you want, then push it to your pages with full HTML control.
You get custom wrapper sections while your team still uses familiar HubSpot modules for content creation. Automation handles reformatting and deployment.
Latenode makes this integration straightforward - connects directly to HubSpot’s API and handles content transformation automatically.
yeah, HubSpot’s restrictions can be a major pain. I feel you! after using it for a while, it’s clear nesting modules isn’t possible. best bet is to use one big module with repeater fields, even tho it’s a pain to set up. good luck!