CMS Development

BarryGrennan
Guide

Why can't you label a section in a dnd template?

SOLVE

I'm sure there's a good reason for this, but it just seems strange.

This works for areas

{% dnd_area "dnd_area_main_content" label="Main Content Area"
%}


But this doesn't work for sections

 {% dnd_section label="Hero Section" %}


I know it's not one of the paramenters for dnd_section

But if you have the ability to rename sections in the content editing screen, it'd just make sense to be able to name sections in a template.


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

 

 

1 Accepted solution
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Why can't you label a section in a dnd template?

SOLVE

Hey @BarryGrennan

I feel you.

Def. something for the ideas board as @Sjardo mentioned. 

 

 

Personally I believe that the “dnd_” HubLs and builder experience would deserve some love in terms of updates & functionalities.

Like

- Uniform tags

{% block body %}
    {% dnd_area "main" %}
    {% end_dnd_area %}
{% endblock %} <-- why is this not "end_block"

- Beeing able to modify the "Style Tab" of sections, rows, columns...

- Dark mode (I don't want to start this topic)

and other things

 

But this is just me 😁

 

Let's just hope that HS have those things on the radar and we get something at INBOUND like "...and one last thing..."

 

 

Anton Bujanowski Signature

View solution in original post

4 Replies 4
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Why can't you label a section in a dnd template?

SOLVE

Hey @BarryGrennan

I feel you.

Def. something for the ideas board as @Sjardo mentioned. 

 

 

Personally I believe that the “dnd_” HubLs and builder experience would deserve some love in terms of updates & functionalities.

Like

- Uniform tags

{% block body %}
    {% dnd_area "main" %}
    {% end_dnd_area %}
{% endblock %} <-- why is this not "end_block"

- Beeing able to modify the "Style Tab" of sections, rows, columns...

- Dark mode (I don't want to start this topic)

and other things

 

But this is just me 😁

 

Let's just hope that HS have those things on the radar and we get something at INBOUND like "...and one last thing..."

 

 

Anton Bujanowski Signature
BarryGrennan
Guide

Why can't you label a section in a dnd template?

SOLVE

@Anton yes! macros are like that too, it still confuses me sometimes.

Control of the styles tab would be great too. Or at least better documentation. I've gotten  hidden={ "default":false, "mobile":true } to work on sections, etc. before.


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

 

 

0 Upvotes
kosalaindrasiri
Top Contributor | Partner
Top Contributor | Partner

Why can't you label a section in a dnd template?

SOLVE

Hey @BarryGrennan,

 

A dnd_section creates a layout "row" within a dnd_area. It only accepts layout-related parameters (like offset, width) and content defaults, not labels.

dnd_section is meant for structural layout, not for naming UI elements in the editor.

 

An idea regarding this has already been submitted: https://community.hubspot.com/t5/HubSpot-Ideas/Add-a-class-parameter-and-id-parameter-to-dnd-module-... 

 

Regards,

Kosala

Kosala Indrasiri

CEO

Sanmark Solutions
Linkedin
Kosala Indrasiri
emailAddress
kosala@thesanmark.com
website
www.sanmarksolutions.com
linkedinwhatsapp
Book a Consultation

Did my post help answer your question? Mark this as a solution.

0 Upvotes
Sjardo
Top Contributor | Elite Partner
Top Contributor | Elite Partner

Why can't you label a section in a dnd template?

SOLVE

Hi Barry,

 

Hard to say why it's not posiblle because it could be very usefull. But as you stateted, the documentation tells us it's not posible and it wont do anything effectivly in the UI (sometimes it's not yet documented, so UI always try those things out.) I guess you have to put it on the Idea board !

Sjardo

HubSpot CMS Developer at Bikkelhart.com

Send a message!

Did my post help answer your question? Mark this as a solution.