CMS Development

sschulman
Teilnehmer/-in

Setting default parameters for dnd_column

I am building a custom theme based off of the boilerplate. I am using the Drag and Drop areas as recommended in the documentation. All of the parameters that I set for the section and rows are working. However, when I set them on the column they are not working. Below is the code I have.

 

{% dnd_area "dnd_area_hero" class="dnd_area_hero" %}
{% dnd_section full_width=true, padding={
  'top': 0,
  'bottom': 0,
  'left': 0,
  'right': 0
} %}
{% dnd_column offset=0, width=12, padding={
  'top': 0,
  'bottom': 0,
  'left': 0,
  'right': 0 %}
  {% dnd_row
    padding={
      'top': 0,
      'right': 0,
      'bottom': 0,
      'left': 0
    } %}
    {% end_dnd_row %}
{% end_dnd_column %}
{% end_dnd_section %}
{% end_dnd_area %}

As a temporary workaround I am manually setting the padding, but I want to avoid that as most users won't know to do that.

0 Upvotes
2 Antworten
WendyGoh
HubSpot Employee
HubSpot Employee

Setting default parameters for dnd_column

Hey @sschulman,

 

I tried your code out on my end:

 

onMyEnd.png

(adding in the color to differentiate the column)

 

and I'm able to see that it's working. Could you share with me a screenshot of the code set up on your end and an example page that is using the html? Additionally, what's the portal ID in question?

sschulman
Teilnehmer/-in

Setting default parameters for dnd_column

@WendyGoh Thank you for following up!

 

The portal ID is 7644163. See screenshot below:

 

Template: default.htmlTemplate: default.htmlPreviewPreview

0 Upvotes