0

I am using drupal 8 and I am trying to get the layout of my content type "jacuzzi" to go from this: enter image description here

To this enter image description here

As you can see, I am using bootstrap. What do I have to change (css or tpl or something else?) to group the text fields and add the right classes?

Thanks in advance

2
  • Let me know , In which field you defined this text **prijis ** .... May 17, 2017 at 7:14
  • field_price (number(decimal)) May 17, 2017 at 7:22

1 Answer 1

0

You can use node--(machine name of contenttype).html.twig to achieve this thing.

<div class = "col-md-6 someclass">{{ content.field_machinenameofimage }}</div>
<div class = "col-md-6 someclass">{{ content.field_machinenameofotherfields }}</div>  

Replace the {{ content }} by the above code. And change the above code how you want to achieve.

1
  • okay no problem May 20, 2017 at 7:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.