Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm rewriting the style of the fields which I want to combine in one field.
For example, I want to display gallery title and description in one container. Here is the desired HTML:
<div class="gallery-info">
<div class="gallery-title">Gallery Title field</div>
<div class="gallery-description">Lorem ipsum dolar sit amet</div>
</div>
So, for the Title field I'm configuring field tag as DIV and add class "gallery-title". For the Body field I'm setting tag as DIV with class "gallery-description". Than I'm adding "Combined fields" field with reference to Title and Body fields. For this field I'm also rewriting styles: tag DIV with class "gallery-info". But I'm getting such markup:
<div class="gallery-info">Gallery Title fieldLorem ipsum dolar sit amet</div>
So, is there any way to get desired markup using that module.
Comments
Comment #1
stBorchertNo, unfortunately the data available for the module is without any markup entered in the fields itself so the output is plain text only.