Often i run into this problem in TYPO3 : i have to wrap a content element with Typoscript but ONLY if there is content. This has an easy solution but all too often i forget it and have to search it up again. So this time i post it here and maybe it helps others too.
1 |
subparts.col 2 < styles.content.getRight |
2 |
subparts.col 2 .stdWrap { |
3 |
wrap = |
4 |
<div id= "col2_content" class= "clearfix" >|</div> |
5 |
6 |
required = 1 |
7 |
} |