菜单

Typoscript: wrap only if content is not empty

2010年09月6日 - typoscript

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.col2 < styles.content.getRight
2 subparts.col2.stdWrap {
3 wrap =
4 <div id="col2_content" class="clearfix">|</div>
5
6 required = 1
7 }

发表评论

电子邮件地址不会被公开。 必填项已用*标注