Search code examples
typo3typoscripttsconfig

How to use multiple lines to instead of linear list in TSConfig addToList?


In TSConfig I sometimes have long lists of items when using addToList / removeFromList

This makes it hard to read/edit. Is there a way to format it as a multiline list?

Eg. What I have:

TCEFORM.tt_content.CType.removeItems := addToList(item1,item2,item3)

What I want:

TCEFORM.tt_content.CType.removeItems := addToList(
    item1
    item2
    item3
)

Solution

  • TCEFORM.tt_content.CType { 
      removeItems := addToList(item1)
      removeItems := addToList(item2)
      removeItems := addToList(item3)
    }
    

    Is the best typoscript can do