Zum Inhalt springen

Wrap around all text elements in a specific column

Depending on their type (text, image, etc.) and their positioning, content elements can be enclosed with any type of wrap.

In this example, we want a wrap around each text content element in the right-hand column:

tt_content {
  stdWrap.outerWrap.cObject = CASE
  stdWrap.outerWrap.cObject {
    key.field = colPos
    # Default is without wrap
    default = TEXT
    default.value = |

    # colPos 2 is the right column
    2 = CASE
    2 {
      key.field = CType
      # cObject text gets a wrap
      text = TEXT
      text.value = <div class="wrapper1">|</div>

      default = TEXT
      default.value = |
    }
  }
}

This page contains automatically translated content.

Updated: 09.04.2025