Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 类型3包裹图像元素_Php_Typo3_Typoscript - Fatal编程技术网

Php 类型3包裹图像元素

Php 类型3包裹图像元素,php,typo3,typoscript,Php,Typo3,Typoscript,我有一个网站正在运行Typo3 如果我添加类型为image或textpic的元素,我希望-标记被几个div包围。所以,我想,我必须使用typoscript 所以我补充说: tt_content { image.20.wrap = <div class="hello">|</div> 可以通过以下方式为整个元素添加环绕: tt_content.image.20.stdWrap.wrap = <div>|</div> tt_content.

我有一个网站正在运行
Typo3

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

所以我补充说:

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

可以通过以下方式为整个元素添加环绕:

tt_content.image.20.stdWrap.wrap = <div>|</div>
tt_content.image.20.stdWrap.wrap=|
如果您只想包装自己的图像,请使用

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

尝试过,但对dom仍然没有影响:/i我在我的描述中添加了打字脚本部分。我对typo3 6.2也有同样的问题。。。你用的是什么版本?
tt_content.image.20.imageStdWrap.wrap = <div>|</div>