Typo3包装图像元素

时间:2014-09-11 14:09:33

标签: php typo3 typoscript

我的网站正在运行Typo3

如果我添加imagetextpic类型的元素,我希望<img> - 标记被几个div包围。所以,我想,我必须使用typoscript

所以我补充道:

tt_content {
    image.20.wrap = <div class="hello">|</div>

}

我可以在对象浏览器中看到它,但它不会显示在前端。从我到目前为止,是的,对于图像和textpic,我必须覆盖这个image.20

的TypoScript:

tt_content {    
    uploads.wrap = <div class="tro-uploads-wrap">|</div>
}

tt_content {    
    table.wrap = <div class="tro-table-wrap">|</div>
}

tt_content.image.20.imageStdWrap.wrap = <div>|</div>

1 个答案:

答案 0 :(得分:0)

可以通过以下方式添加整个元素的包装:

tt_content.image.20.stdWrap.wrap = <div>|</div>

如果您只想自己包装图像,请使用

tt_content.image.20.imageStdWrap.wrap = <div>|</div>