Skip to content
How to Use HubSpot: Copy as HubL

How to Use HubSpot: Copy as HubL


Dustin Brackett
May 12, 2022

Get more out of your HubSpot Investment!

Get a HubSpot Audit
Read Time:
Don't have time? Download Now as a PDF

HubSpot's CMS Hub has quickly become one of the most popular content management systems in the world because of the no-compromise approach. They didn't compromise for developers or marketers; they gave them all the tools they needed to be successful. 

One of the most useful new features that has been rolled out is the ability to Copy as HubL, which changes the game for developers working to create templates quickly.

This blog post is part of our How to Use HubSpot series focused on helping our readers get the most out of their HubSpot portal with tips and tricks on best practices within HubSpot. Some features and tools can be hidden or hard to find. We're uncovering those tools. Follow along and catch all of our HubSpot tips here.

For those that aren't HubSpot developers, HubL is HubSpot's coding language. It is unique to HubSpot as it also incorporates the ability to reference CRM data in your templates, modules, sections, partials, and more.

The ability to Copy as HubL gives developers an easy way to build a page section, copy the HubL code and implement it into a coded template on the backend through Design Tools. When creating templates or updating templates, this can be a HUGE time saver — especially if your modules or sections are very feature/customization heavy.

Here's how you can do it:

  • The first thing you have to do is turn on Developer Mode.
  • Open up the page that you want to copy a section's HubL from and go to edit the page
  • In the editor URL, add ?developerMode=true to the end and hit Enter.
    • Note: the "M" does need to be capitalized.
  • When you're in Developer Mode, you will see the top bar on the page turn from navy blue to light blue.
    Screen Shot 2022-05-05 at 9.52.41 AM
    Screen Shot 2022-05-05 at 9.52.58 AM
  • Now that you're in Developer Mode scroll to the section, row, column, or module you want to copy.
  • Hover over the element that you want to copy and click the down arrow.
  • Click {{ Copy as HubL.
    Screen Shot 2022-05-05 at 9.54.30 AM
  • Now you have copied the HubL code for that element and can paste it right into a coded template.
  • You can do this for any section, row, column, or module on any page using the new drag-and-drop builder.

 

Now instead of having to code out every single line for a template, you can simply paste it in. It's saved our development team countless hours in development time, and hopefully, it saves you some as well!

Check back regularly to find other tips on how to use HubSpot

Not getting the most out of your HubSpot investment? Through our HubSpot Audit, our team will evaluate your HubSpot portal usage and make recommendations on how you can get more out of your portal. HubSpot should be working for you, is it?

HubSpot Audit

Latest Blog Posts

The Roles of Inbound Marketing vs. Digital Marketing
Dec 6, 2023

The Roles of Inbound Marketing vs. Digital Marketing

Evan Burns
Inbound Marketing, Digital Marketing

Understanding the nuances between different strategies is crucial for businesses aiming to thrive in the digital age. Two terms frequently discussed in marketing circles are "inbound marketing" and "digital marketing." While they may seem similar,...

Common Problems HubSpot Audits Uncover and Solutions to Fix Them
Dec 4, 2023

Common Problems HubSpot Audits Uncover and Solutions to Fix Them

Jill Schneider
HubSpot Audit

HubSpot. It's like the Swiss Army knife in the world of digital marketing — super handy with a tool for just about everything. Whether it’s wrangling your marketing, streamlining sales, or keeping customer service on point, HubSpot’s got your back....

Best Practices for a Successful HubSpot Data Migration
Dec 1, 2023

Best Practices for a Successful HubSpot Data Migration

Jill Schneider
HubSpot

The role of a comprehensive CRM and marketing solutions is more critical than ever today. HubSpot, standing at the forefront of this arena, offers a dynamic range of tools designed to streamline customer relationship management, marketing...

HIVE Hexagon
HIVE Hexagon
HIVE Hexagon
HIVE Hexagon
HIVE Hexagon
HIVE Hexagon