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
Typo3 如果正文文本为空,则换行图像_Typo3_Typoscript - Fatal编程技术网

Typo3 如果正文文本为空,则换行图像

Typo3 如果正文文本为空,则换行图像,typo3,typoscript,Typo3,Typoscript,如果有bodytext,我想用image包装内容元素文本的图像。如果bodytext为空,则将其换行。这仅适用于布局默认值和8 tt_content.textpic.20.layout.default { value = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### has-text clearfix"><div class

如果有bodytext,我想用image包装内容元素文本的图像。如果bodytext为空,则将其换行。这仅适用于布局默认值和8

tt_content.textpic.20.layout.default {
    value = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### has-text clearfix"><div class="col-md-6">###IMAGES###</div>###TEXT###</div>
    override >
    override = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### clearfix"><div class="col-md-12">###IMAGES###</div>###TEXT###</div>
    override.if {
        isEmpty.field = bodytext
        negate = 1
    }
}
tt_content.textpic.20.layout.8 {
    value = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-below###CLASSES### has-text clearfix"><div class="col-md-6 pull-right">###IMAGES###</div>###TEXT###</div>
    override >
    override = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### clearfix"><div class="col-md-12">###IMAGES###</div>###TEXT###</div>
    override.if {
        isEmpty.field = bodytext
        negate = 1
    }
}
使用此打字稿时,图像总是用包装,并使用ovveride。

在这种情况下,值不起作用,方法是override.override

tt_content.textpic.20.layout.default.override = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### has-text clearfix"><div class="col-md-6">###IMAGES###</div>###TEXT###</div>
tt_content.textpic.20.layout.default.override.override.cObject = TEXT
tt_content.textpic.20.layout.default.override.override.cObject.value = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### clearfix"><div class="col-md-12">###IMAGES###</div>###TEXT###</div>
tt_content.textpic.20.layout.default.override.override.if.isFalse.field = bodytext

tt_content.textpic.20.layout.8.override = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-below###CLASSES### has-text clearfix"><div class="col-md-6 pull-right">###IMAGES###</div>###TEXT###</div>
tt_content.textpic.20.layout.8.override.override.cObject = TEXT
tt_content.textpic.20.layout.8.override.override.cObject.value = <div class="csc-textpic csc-textpic-responsive csc-textpic-center csc-textpic-above###CLASSES### clearfix"><div class="col-md-12">###IMAGES###</div>###TEXT###</div>
tt_content.textpic.20.layout.8.override.override.if.isFalse.field = bodytext